Skip to content

Commit

Permalink
Add Value method (#66)
Browse files Browse the repository at this point in the history
  • Loading branch information
76creates committed Feb 14, 2022
1 parent f05ca49 commit 0a77f63
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions style.go
Expand Up @@ -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.
Expand Down

0 comments on commit 0a77f63

Please sign in to comment.