awesome-patterns/playground/factory/robotfuncs.go

17 lines
183 B
Go
Raw Permalink Normal View History

2018-10-08 16:08:58 +03:00
package factory
import "log"
func sayHi() {
log.Print("Hi~")
}
func sayHello() {
log.Print("Hello~")
}
func init() {
speakFuncs["hi"] = sayHi
speakFuncs["hello"] = sayHello
}