cep

package
v0.0.0-...-1cbff02 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Address

type Address struct {
	Street         string `json:"street"`
	District       string `json:"district"`
	City           string `json:"city"`
	StateShortname string `json:"stateShortname"`
	Zipcode        string `json:"zipcode"`
}

func (Address) Validate

func (a Address) Validate() error

type AddressDTO

type AddressDTO struct {
	Address `json:"result"`
}

type CepService

type CepService interface {
	GetAddress(cep string) (*AddressDTO, error)
}

func NewCepServive

func NewCepServive(client pkghttp.HttpClient) CepService

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL