Add Value method (#66)

This commit is contained in:
Dusan Gligoric 2022-02-14 15:57:02 +01:00 committed by GitHub
parent f05ca49b39
commit 0a77f6374d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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.