bolt/option.go
jake 55b7a717f6 adding options
- ability to update indicator
2025-06-04 18:28:27 -04:00

11 lines
223 B
Go

package bolt
type Option func(b *bolt)
// sets the substring that must be present at the beginning of the message to indicate a command
func WithIndicator(i string) Option {
return func(b *bolt) {
b.indicator = i
}
}