Initial commit.

This commit is contained in:
2019-09-17 18:39:37 +05:00
commit 3476411569
11 changed files with 1401 additions and 0 deletions

18
options.go Normal file
View File

@@ -0,0 +1,18 @@
package sec
// Options represents configuration for SEC. Note that this is parser
// configuration, per-field configuration should be defined in tags.
type Options struct {
// ErrorsAreCritical indicates that on every parsing error we should
// stop processing things. By default we will proceed even if errors
// will occur except critical errors like passing invalid value to
// SEC_DEBUG environment variable and passing not a pointer to
// structure to Parse() function.
ErrorsAreCritical bool
}
var (
defaultOptions = &Options{
ErrorsAreCritical: false,
}
)