Interface for data objects that have human-readable names.
Description
The INamed interface is used to define data objects containing a human-readable name.
Fields
Examples
type MyStruct struct {
...
name string
}
func (c *MyStruct) GetName() string {
return c.name
}
func (c *MyStruct) SetName(name string) {
c.name = name
}