mirror of
https://github.com/hybridgroup/gobot.git
synced 2025-05-11 19:29:20 +08:00
19 lines
216 B
Go
19 lines
216 B
Go
package main
|
|
|
|
import (
|
|
. "gobot"
|
|
"time"
|
|
"fmt"
|
|
)
|
|
|
|
func main() {
|
|
|
|
robot := Robot{
|
|
Work: func(){
|
|
Every(300 * time.Millisecond, func(){ fmt.Println("Greetings human") })
|
|
},
|
|
}
|
|
|
|
robot.Start()
|
|
}
|