go-captiveportal/option.go

16 lines
238 B
Go
Raw Normal View History

2020-10-16 17:27:44 +02:00
package captiveportal
type Options struct {
Matcher Matcher
Liar Liar
2020-10-16 17:27:44 +02:00
}
type OptionsFunc func(*Options)
func DefaultOptions() *Options {
return &Options{
Matcher: MatchFunc(DefaultMatch),
Liar: LiarFunc(DefaultLiar),
2020-10-16 17:27:44 +02:00
}
}