cheat/internal/display/faint.go
Chris Lane aa16f68620 feat(display): add methods to display
- Add `indent`, `faint`, and `underline` methods to `display`
- Add tests for the above
2020-11-27 16:14:33 -05:00

9 lines
156 B
Go

package display
import "fmt"
// Faint returns an faint string
func Faint(str string) string {
return fmt.Sprintf(fmt.Sprintf("\033[2m%s\033[0m", str))
}