Skip to content

aleroxac/goexpert-gracefullshutdown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 

Repository files navigation

goexpert-gracefullshutdown

Modo de uso

## 1. terminal-01: rode o server
go run main.go

## 2. terminal-02: chame a api
curl http://localhost:8080

## 3. terminal-01: pare o server
ctrl+c

## 4. terminal-02: veja que mesmo com o shutdown do server, a resposta ainda é entregue