mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-30 08:31:16 +00:00
12 lines
279 B
Go
12 lines
279 B
Go
|
package slice
|
||
|
|
||
|
import (
|
||
|
"github.com/Luzifer/go_helpers/v2/str"
|
||
|
"github.com/Luzifer/twitch-bot/plugins"
|
||
|
)
|
||
|
|
||
|
func Register(args plugins.RegistrationArguments) error {
|
||
|
args.RegisterTemplateFunction("inList", plugins.GenericTemplateFunctionGetter(str.StringInSlice))
|
||
|
return nil
|
||
|
}
|