MCPcopy Index your code
hub / github.com/segmentio/ksuid / GoString

Method GoString

set.go:30–36  ·  view source on GitHub ↗

String satisfies the fmt.GoStringer interface, returns a Go representation of the set.

()

Source from the content-addressed store, hash-verified

28// String satisfies the fmt.GoStringer interface, returns a Go representation of
29// the set.
30func (set CompressedSet) GoString() string {
31 b := bytes.Buffer{}
32 b.WriteString("ksuid.CompressedSet{")
33 set.writeTo(&b)
34 b.WriteByte('}')
35 return b.String()
36}
37
38func (set CompressedSet) writeTo(b *bytes.Buffer) {
39 a := [27]byte{}

Callers 1

Calls 2

writeToMethod · 0.95
StringMethod · 0.45

Tested by 1