2021-08-30 20:04:15 +02:00
|
|
|
package decoder
|
|
|
|
|
|
|
|
import "context"
|
|
|
|
|
|
|
|
type OptionFlags uint8
|
|
|
|
|
|
|
|
const (
|
|
|
|
FirstWinOption OptionFlags = 1 << iota
|
|
|
|
ContextOption
|
2022-12-17 17:59:28 +01:00
|
|
|
PathOption
|
2021-08-30 20:04:15 +02:00
|
|
|
)
|
|
|
|
|
|
|
|
type Option struct {
|
|
|
|
Flags OptionFlags
|
|
|
|
Context context.Context
|
2022-12-17 17:59:28 +01:00
|
|
|
Path *Path
|
2021-08-30 20:04:15 +02:00
|
|
|
}
|