reorganise some of the internals of the package.

functional options added.
This commit is contained in:
2024-11-03 15:46:14 +00:00
parent ee781ea586
commit 6c53cfa383
5 changed files with 197 additions and 24 deletions

9
errors.go Normal file
View File

@@ -0,0 +1,9 @@
package vbantxt
// Error is used to define sentinel errors.
type Error string
// Error implements the error interface.
func (r Error) Error() string {
return string(r)
}