goCep

command module
v0.0.0-...-1fe513d Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2019 License: BSD-2-Clause Imports: 13 Imported by: 0

README

goCep

Projeto em Golang para buscar dados do CEP e armazenar em cache

Compilar

Além de ter o Go instalado no sistema operacional é necessário executar:

go build

Executar

O binário chamado goCep será criado. Basta executá-lo e ele ficará ouvindo na porta 3000 por novas requisições

Testando

Para rodar os tests, você pode executar:

go test

Uso

Basta acessar a URL como no exemplo abaixo

http://localhost:3000/cep/89201405

O retorno será um JSON com o conteúdo

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

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