Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Hello, world! using a goroutine
package main
import (
func main() {
myChan := make(chan string)
go func() {
myChan <- "Hello, world!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment