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

Struct person

examples/structs/structs.go:10–13  ·  view source on GitHub ↗

This `person` struct type has `name` and `age` fields.

Source from the content-addressed store, hash-verified

8
9// This `person` struct type has `name` and `age` fields.
10type person struct {
11 name string
12 age int
13}
14
15// `newPerson` constructs a new person struct with the given name.
16func newPerson(name string) *person {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected