
Go Goroutine Programs with Output: WaitGroup, Once and Results
Go goroutine programs run several pieces of work at the same time, which is the feature Go is most famous for. A goroutine is…
Tag

Go goroutine programs run several pieces of work at the same time, which is the feature Go is most famous for. A goroutine is…

Go JSON programs turn Go structs into JSON text and turn JSON text back into Go values, which is how almost every Go API…

Go file programs read, write and manage files on disk, such as saving a report, loading a config or counting lines in a log.…

Go date and time programs work with dates, clocks and durations, such as showing an order date, finding someone’s age or counting days until…

Go error handling programs show how Go reports and deals with problems, such as a missing file, bad input or a failed payment. Go…

Go interface programs let different types share behaviour, so one function can work with a circle, a rectangle or any shape you add later.…

Go pointer programs work with memory addresses, which let a function change a value that lives somewhere else. Pointers sound scary, but in Go…

Go struct programs group related data into one type, such as an employee with a name, salary and department, or an order with items…

Go recursion programs solve a problem by having a function call itself on a smaller version of the same problem. Recursion makes some tasks,…

Go function programs show how to break code into small, reusable pieces, which is the first step from short scripts to real applications. In…