twitch-bot/internal/template/numeric/numeric.go
Knut Ahlers 1409a4bd34
[lint] Fix v2 import path not carrying version
Signed-off-by: Knut Ahlers <knut@ahlers.me>
2022-10-23 15:06:45 +02:00

12 lines
241 B
Go

package numeric
import (
"math"
"github.com/Luzifer/twitch-bot/v2/plugins"
)
func Register(args plugins.RegistrationArguments) error {
args.RegisterTemplateFunction("pow", plugins.GenericTemplateFunctionGetter(math.Pow))
return nil
}