lib/app/address.go

21 lines
378 B
Go
Raw Normal View History

2021-08-05 19:55:24 +00:00
package app
// Address address struct
type Address struct {
City string
Country string
CountryCode string
PostalCode string
State string
StateCode string
Street string
}
// ToString returns the full address in a string
func (obj *Address) ToString() string {
return obj.Street + " " +
obj.City + " " +
obj.State + " " +
obj.PostalCode
}