git.gammaspectra.live/P2Pool/go-json@v0.99.0/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 PathOption 11 ) 12 13 type Option struct { 14 Flags OptionFlags 15 Context context.Context 16 Path *Path 17 }