MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / String

Method String

channels/set.go:165–172  ·  view source on GitHub ↗

Convert to String(), necessary for logging.

()

Source from the content-addressed store, hash-verified

163
164// Convert to String(), necessary for logging.
165func (s Set) String() string {
166 keys := make([]string, 0, len(s))
167 for ch := range s {
168 keys = append(keys, ch.String())
169 }
170 sort.Strings(keys)
171 return fmt.Sprintf("{%s}", strings.Join(keys, ", "))
172}
173
174func (s Set) BuildRedactor(function func(interface{}) base.RedactorFunc) base.Redactor {
175 return RedactorSet{

Callers

nothing calls this directly

Calls 1

StringMethod · 0.65

Tested by

no test coverage detected