Articles

Only showing: Beginner Show all

Understanding slices

Slices are flexible and efficient, but their implementation has some quirky behaviours, leading to unexpected results.

Let us see how they really work and how to avoid running into problems.

CLI commands with google/subcommands

How to create CLI programs with multiple commands, flags and subcommands, and how to do it fast and simply?

google/subcommands makes it a breeze.

Let us see how.

Error handling with Go 1.14

When programming in Go 1.14, error handling is no longer limited to the error interface.

Discover error wrapping, introduced with Go 1.13, and slowly generalized in the Go 1.14 runtime library.

From PHP to Go: PHP2Go

For advanced PHP developers, stepping into Go is often more attractive than Node.JS. But the Go library seems to be missing so much useful stuff found in the PHP library. How can one switch faster ?