mirror of
https://github.com/SourceFellows/gobuch.git
synced 2025-08-03 13:12:16 +02:00
initial import
This commit is contained in:
11
hello-channel/main.go
Normal file
11
hello-channel/main.go
Normal file
@ -0,0 +1,11 @@
|
||||
package main
|
||||
|
||||
import "fmt"
|
||||
|
||||
func main() {
|
||||
c := make(chan string)
|
||||
//Wert in Channel schreiben
|
||||
c <- "Hello World"
|
||||
//Wert aus Channel lesen
|
||||
fmt.Println(<-c)
|
||||
}
|
Reference in New Issue
Block a user