Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
25
func
(p Plant) String() string {
26
return
fmt.Sprintf(
"Plant id=%v, name=%v, origin=%v"
,
27
p.Id, p.Name, p.Origin)
28
}
29
30
func
main() {
31
coffee := &Plant{Id: 27, Name:
"Coffee"
}
Callers
5
main
Function · 0.45
chromaFormat
Function · 0.45
main
Function · 0.45
main
Function · 0.45
main
Function · 0.45
Calls
no outgoing calls
Tested by
no test coverage detected