示例#1
0
func (self *PostalAddress) StringSep(sep string) string {
	return utils.JoinNonEmptyStrings(
		sep, self.FirstLine.Get(),
		self.SecondLine.Get(),
		utils.JoinNonEmptyStrings(" ", self.ZIP.Get(), self.City.Get()),
		self.State.Get(),
		self.Country.Get(),
	)
}
示例#2
0
func (self *Name) String() string {
	if self.Organization != "" {
		return self.Organization.Get()
	}
	return utils.JoinNonEmptyStrings(" ", self.Prefix.Get(), self.First.Get(), self.Middle.Get(), self.Last.Get(), self.Postfix.Get())
}