WARNING For the code in this section, you should install my prettyslice library. STEPS Open your command-line Type: go get -u github.com/inancgumus/prettyslice That's all.