mirror of
https://github.com/cheat/cheat.git
synced 2024-11-16 08:58:28 +01:00
aa16f68620
- Add `indent`, `faint`, and `underline` methods to `display` - Add tests for the above
8 lines
169 B
Go
8 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))
|
|
}
|