MCPcopy Create free account
hub / github.com/OpenPrinting/goipp / String

Method String

value.go:723–735  ·  view source on GitHub ↗

String converts Collection to string

()

Source from the content-addressed store, hash-verified

721
722// String converts Collection to string
723func (v Collection) String() string {
724 var buf bytes.Buffer
725 buf.Write([]byte("{"))
726 for i, attr := range v {
727 if i > 0 {
728 buf.Write([]byte(" "))
729 }
730 fmt.Fprintf(&buf, "%s=%s", attr.Name, attr.Values)
731 }
732 buf.Write([]byte("}"))
733
734 return buf.String()
735}
736
737// Type returns type of Value (TypeCollection for Collection)
738func (Collection) Type() Type { return TypeCollection }

Callers

nothing calls this directly

Calls 2

WriteMethod · 0.80
StringMethod · 0.65

Tested by

no test coverage detected