go-json/internal/decoder/option.go

18 lines
221 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
2022-11-28 21:55:56 +03:00
PathOption
2021-06-06 05:11:04 +03:00
)
2021-06-04 18:27:02 +03:00
type Option struct {
Flags OptionFlags
Context context.Context
2022-11-28 21:55:56 +03:00
Path *Path
2021-06-04 18:27:02 +03:00
}