From fce5ff96678025171038ccd1ef4ae7f71786c7a2 Mon Sep 17 00:00:00 2001 From: Ryan Cavicchioni Date: Sat, 28 Mar 2020 18:04:11 -0500 Subject: [PATCH] fix bug where RGBColor could not be marshalled --- color.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/color.go b/color.go index 3339cf8..8841bdc 100644 --- a/color.go +++ b/color.go @@ -189,6 +189,10 @@ func (c HSBKColor) MarshalText() ([]byte, error) { return []byte(c.ColorString()), nil } +func (c RGBColor) MarshalText() ([]byte, error) { + return []byte(c.ColorString()), nil +} + func (c NamedColor) ColorString() string { return string(c) }