CodeWord: Apokalyptik

The random things that spew forth from my brain…

Menu
Search
Skip to content
  • Home

flags

Go tip: use the flag package for a []string

This gist shows exactly what you need to do. It wasn’t immediately obvious at first, the docs on this particular function in the flag package are not particularly helpful for the uninitiated, though in retrospect they now make sense 🙂

2014/08/10apokalyptik flags, go, golang, slice, strings Leave a comment
Proudly powered by WordPress | Theme: Sorbet by WordPress.com.