- Document you go code using godoc
Go pass arguments to file
for i, val := range os.Args{
fmt.Println!("i", i, "; val", val)
}
Yield in go
func YieldFunction() <-chan int {
ch := make(chan int)
go func() {
defer close(ch)
for i := 0; i < 10; i++ {
ch <- i // Yield data to the consumer
}
}()
return ch
}
func main() {
data := YieldFunction()
for val := range data {
// Process data concurrently
fmt.Println(val)
}
}
- Go dotenv
- Make http server or request endpoint (CRUD) to external URL
- URL parsing
- Handling JSON in Go
- Live reloading in Go (Air)
- Cobra - User guide
- Cobra CLI
- Viper (read cfg files)
- Tview (CLI UI)
- Physics based animation in CLI
- CLI UI components
- Bubble tea
- LipGloss