You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
package pocsagencode
|
|
|
|
type Options struct {
|
|
MaxLen int
|
|
PreambleBits int
|
|
}
|
|
|
|
type OptionFn func(*Options)
|
|
|
|
func OptionMaxLen(v int) OptionFn {
|
|
return func(o *Options) {
|
|
o.MaxLen = v
|
|
}
|
|
}
|
|
|
|
func OptionPreambleBits(v int) OptionFn {
|
|
return func(o *Options) {
|
|
o.PreambleBits = v
|
|
}
|
|
}
|