Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrAddressNotFound = errors.New("Address not found") ErrAddressInvalid = errors.New("The informed zip code is invalid") )
ErrAddressNotFound returns if address was not found ErrAddressInvalid returns if zip code sent is invalid
Functions ¶
This section is empty.
Types ¶
type Address ¶
type Address struct { ID bson.ObjectID `json:"-" bson:"_id,omitempty"` FederativeUnit string `json:"federative_unit" bson:"federative_unit" xml:"uf"` City string `json:"city" bson:"city" xml:"cidade"` Neighborhood string `json:"neighborhood" bson:"neighborhood" xml:"bairro"` AddressName string `json:"address_name" bson:"address_name" xml:"end"` Complement string `json:"complement" bson:"complement" xml:"complemento2"` Zipcode string `json:"zipcode" bson:"zipcode" xml:"cep"` CreatedAt time.Time `json:"created_at" bson:"created_at"` UpdatedAt time.Time `json:"updated_at" bson:"updated_at"` }
Address struct has information from brazilian addresses
Click to show internal directories.
Click to hide internal directories.