Skip to content

Instantly share code, notes, and snippets.

@opethe1st
Created August 31, 2019 02:53
Show Gist options
  • Save opethe1st/9e278bf81b350e96b8a07a16840808f7 to your computer and use it in GitHub Desktop.
Save opethe1st/9e278bf81b350e96b8a07a16840808f7 to your computer and use it in GitHub Desktop.
Underline a character - this is a snippet I found useful
package main
func underline(char rune) string {
return string([]rune{char, 204, 179})
}
func main(){
}
@opethe1st
Copy link
Author

I should probably added functions for

  • underlining the character at a given position
  • underlining an entire string

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment