From 864a8f24ecc59744cfc0a4ea5e7813148d8146f6 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 8 Jan 2015 11:33:15 -0800 Subject: [PATCH] helper/schema: GoString for Set --- helper/schema/set.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/helper/schema/set.go b/helper/schema/set.go index 92966ea595..689be4f9f6 100644 --- a/helper/schema/set.go +++ b/helper/schema/set.go @@ -1,6 +1,7 @@ package schema import ( + "fmt" "sort" "sync" ) @@ -100,6 +101,10 @@ func (s *Set) Union(other *Set) *Set { return result } +func (s *Set) GoString() string { + return fmt.Sprintf("*Set(%#v)", s.m) +} + func (s *Set) init() { s.m = make(map[int]interface{}) }