sec/options.go

17 lines
568 B
Go
Raw Normal View History

2019-09-17 18:39:37 +05:00
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
}
2020-11-21 21:25:16 +05:00
var defaultOptions = &Options{
ErrorsAreCritical: false,
}