From 0a77f6374d04a0c15017721e30002c2d91024752 Mon Sep 17 00:00:00 2001 From: Dusan Gligoric <7six@protonmail.com> Date: Mon, 14 Feb 2022 15:57:02 +0100 Subject: [PATCH] Add Value method (#66) --- style.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/style.go b/style.go index 5743f259..f664fbad 100644 --- a/style.go +++ b/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.