golang-cheat-sheet icon indicating copy to clipboard operation
golang-cheat-sheet copied to clipboard

An overview of Go syntax and features.

Results 28 golang-cheat-sheet issues
Sort by recently updated
recently updated
newest added

https://github.com/basti1302/go-lang-cheat-sheet/blame/master/README.markdown#L345 and https://github.com/basti1302/go-lang-cheat-sheet/blame/master/README.markdown#L361-L363 Seem to imply that functions can only be assigned to structs, however all user defined types can have methods. There is nothing unique about structs with regard...

There was already a PR with generics, but it was pretty old and hadn't been merged, so I decided to add type parameters, constraints, and generic types here.

Add zero values. Understanding the zero value of each type is good for a Golang developer to develop a robust Application.

outer_var in the outer func wasn't changed because the anonymous inner function hadn't been called yet. ```go // Closures: don't mutate outer vars, instead redefine them! func outer() (func() int,...

Is it ok if I begin to translate the document to Spanish, or is someone else already working on it?