Encurtador de URLs em golang
- Criar
URLsencurtadas - Redirecionamento automático
- Compile o projeto
go build -o shortener- Execute o binário
./shortenerEnviar uma requisição POST para o endpoint: http://localhost:8080/shorten:
{
"url": "https://amazon.com"
}URL encurtada:
{
"short_url": "http://localhost:8080/7scoqEp1"
}