From 1c0657441e18038d5b602a25075dc3e1045756ca Mon Sep 17 00:00:00 2001 From: Mohammadali Gharabakloo Date: Sun, 18 Oct 2020 20:59:25 +0330 Subject: [PATCH] fix type of buffer.CreateTag input --- _example/demo/demo.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_example/demo/demo.go b/_example/demo/demo.go index e803caba..a37b2da3 100644 --- a/_example/demo/demo.go +++ b/_example/demo/demo.go @@ -262,7 +262,7 @@ func main() { buffer.Insert(&start, "Hello ") buffer.GetEndIter(&end) buffer.Insert(&end, "World!") - tag := buffer.CreateTag("bold", map[string]string{ + tag := buffer.CreateTag("bold", map[string]interface{}{ "background": "#FF0000", "weight": "700"}) buffer.GetStartIter(&start) buffer.GetEndIter(&end)