adding options

- ability to update indicator
This commit is contained in:
2025-06-04 18:28:27 -04:00
parent d9ff09da6b
commit 55b7a717f6
4 changed files with 31 additions and 12 deletions

10
option.go Normal file
View File

@@ -0,0 +1,10 @@
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
}
}