mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-15 03:23:52 +00:00
32 lines
517 B
Go
32 lines
517 B
Go
package livenote
|
|
|
|
type Option interface{}
|
|
|
|
type OptionCompare struct {
|
|
Value bool
|
|
}
|
|
|
|
func CompareObject(value bool) *OptionCompare {
|
|
return &OptionCompare{Value: value}
|
|
}
|
|
|
|
type OptionOneTimeMention struct {
|
|
Users []string
|
|
}
|
|
|
|
func OneTimeMention(users ...string) *OptionOneTimeMention {
|
|
return &OptionOneTimeMention{Users: users}
|
|
}
|
|
|
|
type OptionComment struct {
|
|
Text string
|
|
Users []string
|
|
}
|
|
|
|
func Comment(text string, users ...string) *OptionComment {
|
|
return &OptionComment{
|
|
Text: text,
|
|
Users: users,
|
|
}
|
|
}
|