services

package
v0.0.0-...-6da9ed2 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAddress

func GetAddress(address *models.Address) (*models.Address, error)

func StartServer

func StartServer(port string) error

Types

type Csv

type Csv struct {
	File   io.Reader
	Header [][]string
	Data   [][]string
}

func NewCsv

func NewCsv(file io.Reader) (*Csv, error)

type Response

type Response struct {
	Code       string `json:"cep"`
	Address    string `json:"logradouro"`
	Complement string `json:"complemento"`
	District   string `json:"bairro"`
	City       string `json:"localidade"`
	State      string `json:"uf"`
}

Jump to

Keyboard shortcuts

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