MCPcopy Create free account
hub / github.com/goinaction/code / Contact

Struct Contact

chapter8/listing27/listing27.go:11–18  ·  view source on GitHub ↗

Contact represents our JSON string.

Source from the content-addressed store, hash-verified

9
10// Contact represents our JSON string.
11type Contact struct {
12 Name string `json:"name"`
13 Title string `json:"title"`
14 Contact struct {
15 Home string `json:"home"`
16 Cell string `json:"cell"`
17 } `json:"contact"`
18}
19
20// JSON contains a sample string to unmarshal.
21var JSON = `{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected