MCPcopy Create free account
hub / github.com/despiteallobjections/amigo / String

Method String

types/methodset.go:22–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

20}
21
22func (s *MethodSet) String() string {
23 if s.Len() == 0 {
24 return "MethodSet {}"
25 }
26
27 var buf strings.Builder
28 fmt.Fprintln(&buf, "MethodSet {")
29 for _, f := range s.list {
30 fmt.Fprintf(&buf, "\t%s\n", f)
31 }
32 fmt.Fprintln(&buf, "}")
33 return buf.String()
34}
35
36// Len returns the number of methods in s.
37func (s *MethodSet) Len() int { return len(s.list) }

Callers

nothing calls this directly

Calls 2

LenMethod · 0.95
StringMethod · 0.65

Tested by

no test coverage detected