mirror of
https://github.com/cheat/cheat.git
synced 2024-12-27 06:59:45 +01:00
9 lines
169 B
Go
9 lines
169 B
Go
|
package display
|
||
|
|
||
|
import "fmt"
|
||
|
|
||
|
// Underline returns an underlined string
|
||
|
func Underline(str string) string {
|
||
|
return fmt.Sprintf(fmt.Sprintf("\033[4m%s\033[0m", str))
|
||
|
}
|