Skip to content

Instantly share code, notes, and snippets.

@gepser
Created November 7, 2016 02:40
Show Gist options
  • Save gepser/5c5046faf91a9757fab3adcb1605872b to your computer and use it in GitHub Desktop.
Save gepser/5c5046faf91a9757fab3adcb1605872b to your computer and use it in GitHub Desktop.
Give color to outputs when testing in Golang
go test -v . | sed ''/PASS/s//$(printf "\033[32mPASS\033[0m")/'' | sed ''/FAIL/s//$(printf "\033[31mFAIL\033[0m")/'' | sed ''/RUN/s//$(printf "\033[36mRUN\033[0m")/''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment