go-json/internal/decoder/option.go

16 lines
194 B
Go
Raw Permalink Normal View History

2021-06-04 18:27:02 +03:00
package decoder
import "context"
type OptionFlags uint8
2021-06-06 05:11:04 +03:00
const (
FirstWinOption OptionFlags = 1 << iota
ContextOption
2021-06-06 05:11:04 +03:00
)
2021-06-04 18:27:02 +03:00
type Option struct {
Flags OptionFlags
Context context.Context
2021-06-04 18:27:02 +03:00
}