mirror of
https://github.com/SourceFellows/gobuch.git
synced 2024-10-22 22:05:35 +00:00
12 lines
161 B
Go
12 lines
161 B
Go
|
package main
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
func main() {
|
||
|
c := make(chan string)
|
||
|
//Wert in Channel schreiben
|
||
|
c <- "Hello World"
|
||
|
//Wert aus Channel lesen
|
||
|
fmt.Println(<-c)
|
||
|
}
|