helper/schema: GoString for Set

This commit is contained in:
Mitchell Hashimoto 2015-01-08 11:33:15 -08:00
parent 7e379cb1a1
commit 864a8f24ec
1 changed files with 5 additions and 0 deletions

View File

@ -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{})
}