Loading...
Loading...
Go (Golang) with goroutines, channels, interfaces, and idiomatic patterns. Use for .go files.
npx skill4agent add g1joshi/agent-skills gopackage main
import "fmt"
func main() {
fmt.Println("Hello, World!")
ch := make(chan string)
go func() {
ch <- "from goroutine"
}()
msg := <-ch
fmt.Println(msg)
}go doSomething()if err != nilgofmt_