go get github.com/nobody05/gdelay
delay := NewDelay(3)
delay.Start()
delay.DelayAdd(&DelayParam{
Duration: time.Now().Add(time.Second * 3)).Unix(),
Fun: func() {
log.Println("hello world")
},
})
// wait for delay execute
for {
}