MCPcopy
hub / github.com/gobyexample-cn/gobyexample / String

Method String

examples/xml/xml.go:24–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 5

mainFunction · 0.80
chromaFormatFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected