helper/schema: GoString for Set
This commit is contained in:
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…
Reference in New Issue