colega / unexpected-go

Unexpected Golang behaviors
MIT License
47 stars 7 forks source link

Gopherize.me gopher

unexpected-go

Source code for unexpected-go.com

This is a small collection of unexpected golang behaviors, none of them are (probably) bugs, they're just the way golang works.

Some of these examples are useful to avoid potential bugs in your production code, and others are just funny.

Notice: These examples are not trying to prove that golang is wrong, or that it doesn't work properly. If you think (and you're probably right) that a behavior is justified, please send us a PR updating the example with more information.

Local development

See github pages help pages for more details.

You'll need to update ruby first: https://jekyllrb.com/docs/installation/macos/ TL;DR

ruby --version # make sure it's >2.1.0 
bundle install
bundle exec jekyll serve