Initial commit

This commit is contained in:
2014-08-24 19:56:55 +07:00
commit 509f281f72
11 changed files with 337 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
package sleep
import (
"fmt"
"time"
"code.google.com/p/go.net/context"
)
func Call(ctx context.Context) context.Context {
fmt.Println("Going into sleep")
time.Sleep(5 * time.Second)
fmt.Println("Woke up")
return ctx
}