Added folder for german translation

This commit is contained in:
digitalcraftsman
2015-06-23 20:04:41 +02:00
parent 1bca172f53
commit ffa3ed81f5
270 changed files with 16240 additions and 0 deletions

View File

@@ -0,0 +1,27 @@
// Example code for Chapter 2.7 from "Build Web Application with Golang"
// Purpose: Shows how to create and use a timeout
package main
import (
"fmt"
"time"
)
func main() {
c := make(chan int)
o := make(chan bool)
go func() {
for {
select {
case v := <-c:
fmt.Println(v)
case <-time.After(5 * time.Second):
fmt.Println("timeout")
o <- true
break
}
}
}()
<-o
}