1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-02 22:17:12 +08:00
deadprogram 458c750f33 core: refactor/rename internal name of Master type
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-15 20:02:54 +02:00

24 lines
292 B
Go

package main
import (
"fmt"
"time"
"github.com/hybridgroup/gobot"
)
func main() {
gbot := gobot.NewMaster()
robot := gobot.NewRobot(
"hello",
func() {
gobot.Every(500*time.Millisecond, func() { fmt.Println("Greetings human") })
},
)
gbot.AddRobot(robot)
gbot.Start()
}