Added arn to the main repository

This commit is contained in:
2019-06-03 18:32:43 +09:00
parent cf258573a8
commit 29a48d94a5
465 changed files with 15968 additions and 288 deletions

14
arn/Name.go Normal file
View 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)
}