1
0
mirror of https://github.com/hybridgroup/gobot.git synced 2025-05-01 13:48:57 +08:00

22 lines
266 B
Go
Raw Normal View History

2013-10-22 16:45:31 -07:00
package gobot
import (
"time"
)
//type Gobot struct{
// Robot
// Connections []Connection
// Devices []Device
// Name string
// Work func()
//}
func Every(t time.Duration, ret func()) {
go func(){
for{
ret()
time.Sleep(t)
}
}()
}