Skip to content

Instantly share code, notes, and snippets.

@djui
Created March 23, 2016 14:41
Show Gist options
  • Save djui/d8b2c955b20a310f6a70 to your computer and use it in GitHub Desktop.
Save djui/d8b2c955b20a310f6a70 to your computer and use it in GitHub Desktop.
Highlights the go test output
#!/bin/bash
sed ''/RUN/s//$(printf "\033[30;1mRUN\033[0m")/'' | \
sed ''/PASS:/s//$(printf "\033[32mPASS\033[0m:")/'' | \
sed ''/PASS/s//$(printf "\033[32;1mPASS\033[0m")/'' | \
sed ''/SKIP:/s//$(printf "\033[33mSKIP\033[0m:")/'' | \
sed ''/SKIP/s//$(printf "\033[33;1mSKIP\033[0m")/'' | \
sed ''/FAIL:/s//$(printf "\033[31mFAIL\033[0m:")/'' | \
sed ''/FAIL/s//$(printf "\033[31;1mFAIL\033[0m")/''
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment