mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-14 02:52:42 +00:00
11 lines
287 B
Go
11 lines
287 B
Go
|
package numeric
|
||
|
|
||
|
import "github.com/Luzifer/twitch-bot/plugins"
|
||
|
|
||
|
func Register(args plugins.RegistrationArguments) error {
|
||
|
args.RegisterTemplateFunction("multiply", plugins.GenericTemplateFunctionGetter(multiply))
|
||
|
return nil
|
||
|
}
|
||
|
|
||
|
func multiply(m1, m2 float64) float64 { return m1 * m2 }
|