github.com/night-codes/go-json@v0.9.15/internal/decoder/option.go (about) 1 package decoder 2 3 import "context" 4 5 type OptionFlags uint8 6 7 const ( 8 FirstWinOption OptionFlags = 1 << iota 9 ContextOption 10 ) 11 12 type Option struct { 13 Flags OptionFlags 14 Context context.Context 15 }