go-captiveportal/option.go

16 lines
238 B
Go

package captiveportal
type Options struct {
Matcher Matcher
Liar Liar
}
type OptionsFunc func(*Options)
func DefaultOptions() *Options {
return &Options{
Matcher: MatchFunc(DefaultMatch),
Liar: LiarFunc(DefaultLiar),
}
}