From 63ba2ee6a8aed73a8ca3666f0f148ef30fe7a72e Mon Sep 17 00:00:00 2001 From: Dusan Gligoric <7six@protonmail.com> Date: Fri, 11 Feb 2022 01:21:03 +0100 Subject: [PATCH 1/2] add GetValue method --- style.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/style.go b/style.go index 5743f259..7ac912c0 100644 --- a/style.go +++ b/style.go @@ -97,6 +97,11 @@ func (s Style) SetString(str string) Style { return s } +// GetValue returns the raw, unformatted, underlying value for this style. +func (s Style) GetValue() 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. From 97bab55607e70a5bd003c369c9eb964432391475 Mon Sep 17 00:00:00 2001 From: Dusan Gligoric <7six@protonmail.com> Date: Mon, 14 Feb 2022 12:27:18 +0100 Subject: [PATCH 2/2] update method name to Value --- style.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/style.go b/style.go index 7ac912c0..f664fbad 100644 --- a/style.go +++ b/style.go @@ -97,8 +97,8 @@ func (s Style) SetString(str string) Style { return s } -// GetValue returns the raw, unformatted, underlying value for this style. -func (s Style) GetValue() string { +// Value returns the raw, unformatted, underlying value for this style. +func (s Style) Value() string { return s.value }