1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-02 22:17:12 +08:00
2023-05-20 14:25:21 +02:00

25 lines
292 B
Go

//go:build example
// +build example
//
// Do not build by default.
package main
import (
"fmt"
"time"
"gobot.io/x/gobot/v2"
)
func main() {
robot := gobot.NewRobot(
func() {
gobot.Every(500*time.Millisecond, func() { fmt.Println("Greetings human") })
},
)
robot.Start()
}