Tag Archives: go

golang contains

Starting with Go 1.18, you can use the slices package – specifically the generic Contains function: https://pkg.go.dev/golang.org/x/exp/slices#Contains. Note that since this is outside the stdlib as an experimental package,... Read More | Share it now!

Cross-Compiling Golang …

Compiling your go code into a binary is pretty simple: This will build the binary for your current OS and architecture. But compiling binaries for other operating systems and even architectures is also possible. You just need to modify a few... Read More | Share it now!