In std/functions.go
you can find the Functions
map, there are 2 ways to add to the map
And commands must follow this to be stable func(args ...interface{}) interface{}
func LoadCommands() {
Functions["input"] = Input
}
func Input(args ...interface{}) interface{}
fmt.Println(args...)
}
or
var Functions = map[string]func(args ...interface{}) interface{}{
//OTHER METHODS
"input": Input
}
var Functions = map[string]func(args ...interface{}) interface{}{
//OTHER METHODS
"input": func(args ...interface{}) interface{} {
fmt.Println(args...)
},
}