lib/app/address.go

21 lines
378 B
Go
Raw Normal View History

2023-09-12 03:42:13 +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
}