helper/schema: GoString for Set

pull/764/head
Mitchell Hashimoto 11 years ago
parent 7e379cb1a1
commit 864a8f24ec

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

Loading…
Cancel
Save