add go syntax coloring
shorten and standardize print snippet