15 lines
337 B
Go
Raw Normal View History

2019-06-03 09:32:43 +00:00
package arn
import "fmt"
// Name is the combination of a first and last name.
type Name struct {
First string `json:"first" editable:"true"`
Last string `json:"last" editable:"true"`
}
// String returns the default visualization of the name.
func (name Name) String() string {
return fmt.Sprintf("%s %s", name.First, name.Last)
}