Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
33 lines (27 sloc) 807 Bytes
package modelext
import (
// 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 (self *PostalAddress) String() string {
return self.StringSep(", ")
func (self *PostalAddress) StringSep(sep string) string {
return utils.JoinNonEmptyStrings(
sep, self.FirstLine.Get(),
utils.JoinNonEmptyStrings(" ", self.ZIP.Get(), self.City.Get()),
Something went wrong with that request. Please try again.