Added arn to the main repository
This commit is contained in:
14
arn/Name.go
Normal file
14
arn/Name.go
Normal file
@ -0,0 +1,14 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user