mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-04-27 13:48:56 +08:00
17 lines
211 B
Go
17 lines
211 B
Go
package main
|
|
|
|
import (
|
|
"fmt"
|
|
"github.com/hybridgroup/gobot"
|
|
)
|
|
|
|
func main() {
|
|
robot := gobot.Robot{
|
|
Work: func() {
|
|
gobot.Every("0.5s", func() { fmt.Println("Greetings human") })
|
|
},
|
|
}
|
|
|
|
robot.Start()
|
|
}
|