MCPcopy Create free account
hub / github.com/mmcgrana/gobyexample / String

Method String

examples/xml/xml.go:25–28  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

23}
24
25func (p Plant) String() string {
26 return fmt.Sprintf("Plant id=%v, name=%v, origin=%v",
27 p.Id, p.Name, p.Origin)
28}
29
30func main() {
31 coffee := &Plant{Id: 27, Name: "Coffee"}

Callers 5

mainFunction · 0.45
chromaFormatFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45
mainFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected