1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-01 13:48:57 +08:00
deadprogram 4230d2ab2f examples: remove Master unless needed for less code
Signed-off-by: deadprogram <ron@hybridgroup.com>
2016-10-18 21:08:25 +02:00

19 lines
231 B
Go

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