diff --git a/text/text.go b/text/text.go index 0ac4651e..2a375b44 100644 --- a/text/text.go +++ b/text/text.go @@ -103,3 +103,14 @@ func (a Alignment) String() string { panic("invalid Alignment") } } + +func (s Style) String() string { + switch s { + case Regular: + return "Regular" + case Italic: + return "Italic" + default: + panic("invalid Style") + } +}