mirror of
https://github.com/charmbracelet/lipgloss.git
synced 2024-09-11 22:17:12 +03:00
Add Value method (#66)
This commit is contained in:
parent
f05ca49b39
commit
0a77f6374d
5
style.go
5
style.go
@ -97,6 +97,11 @@ func (s Style) SetString(str string) Style {
|
||||
return s
|
||||
}
|
||||
|
||||
// Value returns the raw, unformatted, underlying value for this style.
|
||||
func (s Style) Value() string {
|
||||
return s.value
|
||||
}
|
||||
|
||||
// String implements stringer for a Style, returning the rendered result based
|
||||
// on the rules in this style. An underlying string value must be set with
|
||||
// Style.SetString prior to using this method.
|
||||
|
Loading…
Reference in New Issue
Block a user