modelext

package
v0.0.0-...-8f43b2f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 11, 2012 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var NameDocLabelSelectors = []string{"Name.Prefix", "Name.First", "Name.Middle", "Name.Last", "Name.Postfix", "Name.Organization"}

Functions

This section is empty.

Types

type Name

type Name struct {
	Prefix       model.String `view:"size=10"`
	First        model.String `view:"size=20|label=Given"`
	Middle       model.String `view:"size=20"`
	Last         model.String `view:"size=20|label=Family"`
	Postfix      model.String `view:"size=10"`
	Organization model.String `view:"size=40"`
}

func (*Name) SetForOrganization

func (self *Name) SetForOrganization(organization string)

func (*Name) SetForPerson

func (self *Name) SetForPerson(prefix, first, middle, last, postfix string)

func (*Name) String

func (self *Name) String() string

type PostalAddress

type PostalAddress struct {
	FirstLine  model.String `view:"size=40"`
	SecondLine model.String `view:"size=40"`
	ZIP        model.String `view:"size=10"`
	City       model.String `view:"size=20"`
	State      model.String `view:"size=20"`
	Country    model.Country
}

func (*PostalAddress) String

func (self *PostalAddress) String() string

func (*PostalAddress) StringSep

func (self *PostalAddress) StringSep(sep string) string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL