release: v0.6.1
This commit is contained in:
commit
877eef7f07
118 files changed
+46315
No files matched your search
@@ -0,0 +1,297 @@
|
||||
# Como Contribuir
|
||||
|
||||
Guia para contribuir com o Evolution GO.
|
||||
|
||||
## Índice
|
||||
|
||||
- [Como Contribuir](#como-contribuir)
|
||||
- [Código de Conduta](#código-de-conduta)
|
||||
- [Reportando Bugs](#reportando-bugs)
|
||||
- [Sugerindo Features](#sugerindo-features)
|
||||
- [Pull Requests](#pull-requests)
|
||||
- [Padrões de Código](#padrões-de-código)
|
||||
- [Processo de Review](#processo-de-review)
|
||||
|
||||
---
|
||||
|
||||
## Como Contribuir
|
||||
|
||||
Contribuições são bem-vindas! Você pode contribuir:
|
||||
|
||||
- 🐛 Reportando bugs
|
||||
- 💡 Sugerindo novas features
|
||||
- 📝 Melhorando documentação
|
||||
- 🔧 Corrigindo bugs
|
||||
- ✨ Implementando features
|
||||
|
||||
---
|
||||
|
||||
## Código de Conduta
|
||||
|
||||
- Seja respeitoso e profissional
|
||||
- Aceite feedback construtivo
|
||||
- Foque no que é melhor para a comunidade
|
||||
- Mostre empatia com outros membros
|
||||
|
||||
---
|
||||
|
||||
## Reportando Bugs
|
||||
|
||||
### Antes de Reportar
|
||||
|
||||
1. Verifique se o bug já foi reportado nas [Issues](https://git.evoai.app/Evolution/evolution-go/issues)
|
||||
2. Teste na versão mais recente
|
||||
3. Colete informações: logs, versão do Go, sistema operacional
|
||||
|
||||
### Template de Bug Report
|
||||
|
||||
```markdown
|
||||
**Descrição do Bug**
|
||||
Descrição clara e concisa do bug.
|
||||
|
||||
**Como Reproduzir**
|
||||
1. Faça X
|
||||
2. Execute Y
|
||||
3. Veja erro Z
|
||||
|
||||
**Comportamento Esperado**
|
||||
O que deveria acontecer.
|
||||
|
||||
**Comportamento Atual**
|
||||
O que está acontecendo.
|
||||
|
||||
**Screenshots/Logs**
|
||||
Se aplicável, adicione screenshots ou logs.
|
||||
|
||||
**Ambiente**
|
||||
- OS: [ex: Ubuntu 22.04]
|
||||
- Go Version: [ex: 1.24.0]
|
||||
- Evolution GO Version: [ex: v1.0.0]
|
||||
- PostgreSQL Version: [ex: 15.2]
|
||||
|
||||
**Informações Adicionais**
|
||||
Qualquer outro contexto sobre o problema.
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Sugerindo Features
|
||||
|
||||
### Template de Feature Request
|
||||
|
||||
```markdown
|
||||
**Descrição da Feature**
|
||||
Descrição clara da feature proposta.
|
||||
|
||||
**Problema que Resolve**
|
||||
Qual problema esta feature resolve?
|
||||
|
||||
**Solução Proposta**
|
||||
Como você imagina que esta feature funcionaria?
|
||||
|
||||
**Alternativas Consideradas**
|
||||
Outras abordagens que você considerou?
|
||||
|
||||
**Informações Adicionais**
|
||||
Mockups, exemplos, referências, etc.
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Pull Requests
|
||||
|
||||
### Processo
|
||||
|
||||
1. **Fork** o repositório
|
||||
2. **Clone** seu fork: `git clone https://git.evochat.com/SEU-USUARIO/evolution-go.git`
|
||||
3. **Crie branch**: `git checkout -b feature/minha-feature`
|
||||
4. **Desenvolva** e **commit** suas mudanças
|
||||
5. **Push**: `git push origin feature/minha-feature`
|
||||
6. **Abra PR** no repositório original
|
||||
|
||||
### Checklist do PR
|
||||
|
||||
- [ ] Código segue os padrões do projeto
|
||||
- [ ] Código foi formatado (`make fmt`)
|
||||
- [ ] Lint passou sem erros (`make lint`)
|
||||
- [ ] Documentação foi atualizada (se necessário)
|
||||
- [ ] Swagger foi atualizado (`make swagger`) se alterou endpoints
|
||||
- [ ] Commit messages são descritivas
|
||||
|
||||
### Padrão de Commit
|
||||
|
||||
Use [Conventional Commits](https://www.conventionalcommits.org/):
|
||||
|
||||
```bash
|
||||
# Feature
|
||||
git commit -m "feat: adiciona suporte para envio de áudio"
|
||||
|
||||
# Bug fix
|
||||
git commit -m "fix: corrige erro ao deletar instância"
|
||||
|
||||
# Documentação
|
||||
git commit -m "docs: atualiza guia de instalação"
|
||||
|
||||
# Refatoração
|
||||
git commit -m "refactor: simplifica lógica de conexão"
|
||||
|
||||
# Chore (manutenção)
|
||||
git commit -m "chore: atualiza dependências"
|
||||
|
||||
# Performance
|
||||
git commit -m "perf: otimiza query de listagem de mensagens"
|
||||
```
|
||||
|
||||
### Mensagens de Commit Detalhadas
|
||||
|
||||
```bash
|
||||
git commit -m "feat: adiciona endpoint de busca de mensagens
|
||||
|
||||
- Implementa GET /message/search
|
||||
- Adiciona filtros por data, remetente e texto
|
||||
- Inclui paginação (limit/offset)
|
||||
- Atualiza documentação Swagger
|
||||
|
||||
Closes #42"
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Padrões de Código
|
||||
|
||||
### Go Formatting
|
||||
|
||||
```bash
|
||||
# Sempre formate antes de commit
|
||||
make fmt
|
||||
|
||||
# Ou manualmente
|
||||
go fmt ./...
|
||||
goimports -w .
|
||||
```
|
||||
|
||||
### Linting
|
||||
|
||||
```bash
|
||||
# Execute lint
|
||||
make lint
|
||||
|
||||
# Corrige automaticamente quando possível
|
||||
golangci-lint run --fix
|
||||
```
|
||||
|
||||
### Estrutura de Código
|
||||
|
||||
Siga o padrão **Handler → Service → Repository**:
|
||||
|
||||
```go
|
||||
// pkg/mymodule/handler.go
|
||||
package mymodule
|
||||
|
||||
type MyHandler struct {
|
||||
service MyService
|
||||
}
|
||||
|
||||
func (h *MyHandler) Create(c *gin.Context) {
|
||||
// Valida input
|
||||
// Chama service
|
||||
// Retorna response
|
||||
}
|
||||
|
||||
// pkg/mymodule/service.go
|
||||
type MyService interface {
|
||||
Create(dto CreateDTO) (*Model, error)
|
||||
}
|
||||
|
||||
type myService struct {
|
||||
repo MyRepository
|
||||
}
|
||||
|
||||
func (s *myService) Create(dto CreateDTO) (*Model, error) {
|
||||
// Lógica de negócio
|
||||
// Chama repository
|
||||
return model, nil
|
||||
}
|
||||
|
||||
// pkg/mymodule/repository.go
|
||||
type MyRepository interface {
|
||||
Save(model *Model) error
|
||||
}
|
||||
|
||||
type myRepository struct {
|
||||
db *gorm.DB
|
||||
}
|
||||
|
||||
func (r *myRepository) Save(model *Model) error {
|
||||
return r.db.Create(model).Error
|
||||
}
|
||||
```
|
||||
|
||||
### Documentação Swagger
|
||||
|
||||
Sempre documente endpoints públicos:
|
||||
|
||||
```go
|
||||
// GetInstance retorna uma instância por ID.
|
||||
//
|
||||
// @Summary Buscar instância
|
||||
// @Description Retorna detalhes de uma instância WhatsApp
|
||||
// @Tags instance
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param instanceName path string true "Nome da instância"
|
||||
// @Success 200 {object} Instance
|
||||
// @Failure 404 {object} ErrorResponse
|
||||
// @Security ApiKeyAuth
|
||||
// @Router /instance/{instanceName} [get]
|
||||
func (h *InstanceHandler) GetInstance(c *gin.Context) {
|
||||
// ...
|
||||
}
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Processo de Review
|
||||
|
||||
### O que os Reviewers Avaliam
|
||||
|
||||
- ✅ **Funcionalidade**: O código faz o que deveria?
|
||||
- ✅ **Qualidade**: Código limpo, legível e manutenível?
|
||||
- ✅ **Performance**: Há problemas de performance?
|
||||
- ✅ **Segurança**: Há vulnerabilidades?
|
||||
- ✅ **Testes**: Há cobertura adequada? (quando testes existirem)
|
||||
- ✅ **Documentação**: Está atualizada?
|
||||
|
||||
### Timeline Esperado
|
||||
|
||||
- **Primeira revisão**: 1-3 dias úteis
|
||||
- **Revisões subsequentes**: 1-2 dias úteis
|
||||
- **Merge**: Após aprovação de 1+ mantainer
|
||||
|
||||
### Respondendo a Feedbacks
|
||||
|
||||
- Seja receptivo a sugestões
|
||||
- Faça perguntas se não entender
|
||||
- Atualize o código conforme feedback
|
||||
- Force push (`git push -f`) é OK durante review
|
||||
|
||||
### Após o Merge
|
||||
|
||||
- Delete sua branch: `git branch -d feature/minha-feature`
|
||||
- Atualize seu fork: `git pull upstream main`
|
||||
|
||||
---
|
||||
|
||||
## Recursos Úteis
|
||||
|
||||
- **Issues**: https://git.evoai.app/Evolution/evolution-go/issues
|
||||
- **Pull Requests**: https://git.evoai.app/Evolution/evolution-go/merge_requests
|
||||
- **Documentação**: https://git.evoai.app/Evolution/evolution-go/-/wikis
|
||||
- **Go Style Guide**: https://google.github.io/styleguide/go/
|
||||
- **Effective Go**: https://go.dev/doc/effective_go
|
||||
|
||||
---
|
||||
|
||||
**Obrigado por contribuir!** 🎉
|
||||
|
||||
**Mantido por**: Equipe EvoAI Services
|
||||
@@ -0,0 +1,407 @@
|
||||
# Debugging e Troubleshooting
|
||||
|
||||
Guia para resolver problemas comuns no Evolution GO.
|
||||
|
||||
## Índice
|
||||
|
||||
- [Logs e Debug Mode](#logs-e-debug-mode)
|
||||
- [Problemas Comuns](#problemas-comuns)
|
||||
- [Debugging com IDE](#debugging-com-ide)
|
||||
- [Profiling de Performance](#profiling-de-performance)
|
||||
- [Análise de Banco de Dados](#análise-de-banco-de-dados)
|
||||
- [Network Debugging](#network-debugging)
|
||||
- [Ferramentas Úteis](#ferramentas-úteis)
|
||||
|
||||
---
|
||||
|
||||
## Logs e Debug Mode
|
||||
|
||||
### Habilitar Debug Mode
|
||||
|
||||
```env
|
||||
# .env
|
||||
WADEBUG=DEBUG
|
||||
LOGTYPE=console # ou 'file'
|
||||
```
|
||||
|
||||
### Visualizar Logs
|
||||
|
||||
```bash
|
||||
# Logs em console
|
||||
make dev
|
||||
|
||||
# Logs em arquivo
|
||||
tail -f logs/evolution-go.log
|
||||
|
||||
# Docker
|
||||
docker-compose logs -f evolution-go
|
||||
|
||||
# Filtrar logs de erro
|
||||
docker-compose logs evolution-go | grep ERROR
|
||||
```
|
||||
|
||||
### Níveis de Log
|
||||
|
||||
- **DEBUG**: Detalhes de execução (desenvolvimento)
|
||||
- **INFO**: Informações gerais (produção)
|
||||
- **WARN**: Avisos (produção)
|
||||
- **ERROR**: Erros (sempre)
|
||||
|
||||
---
|
||||
|
||||
## Problemas Comuns
|
||||
|
||||
### 1. Erro: "port 4000 already in use"
|
||||
|
||||
**Causa**: Outra aplicação usando a porta 4000.
|
||||
|
||||
**Solução**:
|
||||
|
||||
```bash
|
||||
# Verificar processo usando a porta
|
||||
lsof -i :4000
|
||||
|
||||
# Ou
|
||||
netstat -tuln | grep 4000
|
||||
|
||||
# Matar processo
|
||||
kill -9 <PID>
|
||||
|
||||
# Ou alterar porta no .env
|
||||
SERVER_PORT=4001
|
||||
```
|
||||
|
||||
### 2. Erro: "connection refused" (PostgreSQL)
|
||||
|
||||
**Causa**: PostgreSQL não está rodando ou inacessível.
|
||||
|
||||
**Solução**:
|
||||
|
||||
```bash
|
||||
# Verificar se PostgreSQL está rodando
|
||||
sudo systemctl status postgresql
|
||||
|
||||
# Ou via Docker
|
||||
docker ps | grep postgres
|
||||
|
||||
# Iniciar PostgreSQL
|
||||
sudo systemctl start postgresql
|
||||
|
||||
# Ou via Docker
|
||||
docker start postgres
|
||||
|
||||
# Testar conexão
|
||||
psql -h localhost -U postgres -d evogo_auth
|
||||
```
|
||||
|
||||
### 3. Erro: "database does not exist"
|
||||
|
||||
**Causa**: Databases `evogo_auth` ou `evogo_users` não criados.
|
||||
|
||||
**Solução**:
|
||||
|
||||
```bash
|
||||
# Criar databases
|
||||
sudo -u postgres psql << EOF
|
||||
CREATE DATABASE evogo_auth;
|
||||
CREATE DATABASE evogo_users;
|
||||
EOF
|
||||
|
||||
# Ou via Docker
|
||||
docker exec -i postgres psql -U postgres << EOF
|
||||
CREATE DATABASE evogo_auth;
|
||||
CREATE DATABASE evogo_users;
|
||||
EOF
|
||||
```
|
||||
|
||||
### 4. Erro: "invalid API key"
|
||||
|
||||
**Causa**: API key incorreta ou não configurada.
|
||||
|
||||
**Solução**:
|
||||
|
||||
```bash
|
||||
# Verificar .env
|
||||
cat .env | grep GLOBAL_API_KEY
|
||||
|
||||
# Testar com API key correta
|
||||
curl -H "apikey: SUA-CHAVE" http://localhost:4000/server/ok
|
||||
```
|
||||
|
||||
### 5. QR Code não Aparece
|
||||
|
||||
**Causa**: Instância já conectada ou erro de criação.
|
||||
|
||||
**Solução**:
|
||||
|
||||
```bash
|
||||
# Verificar logs
|
||||
docker-compose logs -f evolution-go | grep QR
|
||||
|
||||
# Deletar e recriar instância
|
||||
curl -X DELETE http://localhost:4000/instance/delete/NOME \
|
||||
-H "apikey: SUA-CHAVE"
|
||||
|
||||
curl -X POST http://localhost:4000/instance/create \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "apikey: SUA-CHAVE" \
|
||||
-d '{"instanceName": "NOME"}'
|
||||
```
|
||||
|
||||
### 6. Webhook não Funciona
|
||||
|
||||
**Causa**: URL inválida ou endpoint indisponível.
|
||||
|
||||
**Solução**:
|
||||
|
||||
```bash
|
||||
# Testar webhook manualmente
|
||||
curl -X POST https://seu-webhook.com/endpoint \
|
||||
-H "Content-Type: application/json" \
|
||||
-d '{"test": true}'
|
||||
|
||||
# Verificar logs
|
||||
docker-compose logs evolution-go | grep webhook
|
||||
|
||||
# Verificar configuração
|
||||
curl http://localhost:4000/instance/connectionState/NOME \
|
||||
-H "apikey: SUA-CHAVE"
|
||||
```
|
||||
|
||||
### 7. Mensagem não Envia
|
||||
|
||||
**Causa**: Instância desconectada, número inválido, ou erro de rede.
|
||||
|
||||
**Solução**:
|
||||
|
||||
```bash
|
||||
# Verificar conexão
|
||||
curl http://localhost:4000/instance/connectionState/NOME \
|
||||
-H "apikey: SUA-CHAVE"
|
||||
|
||||
# Verificar logs
|
||||
docker-compose logs -f evolution-go
|
||||
|
||||
# Verificar formato do número
|
||||
# Correto: 5511999999999 (DDI + DDD + número)
|
||||
# Errado: 11999999999, +55 11 99999-9999
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Debugging com IDE
|
||||
|
||||
### VSCode
|
||||
|
||||
1. Abrir `Run and Debug` (Ctrl+Shift+D)
|
||||
2. Selecionar "Launch Evolution GO"
|
||||
3. Adicionar breakpoints (F9)
|
||||
4. Iniciar debug (F5)
|
||||
|
||||
**launch.json**:
|
||||
|
||||
```json
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Debug Evolution GO",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"mode": "debug",
|
||||
"program": "${workspaceFolder}/cmd/evolution-go",
|
||||
"args": ["-dev"],
|
||||
"showLog": true
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
### GoLand
|
||||
|
||||
1. **Run → Debug 'Evolution GO'**
|
||||
2. Adicionar breakpoints (Ctrl+F8)
|
||||
3. Debug com F5
|
||||
|
||||
---
|
||||
|
||||
## Profiling de Performance
|
||||
|
||||
### CPU Profiling
|
||||
|
||||
```bash
|
||||
# Executar com pprof
|
||||
go run cmd/evolution-go/main.go -dev &
|
||||
PID=$!
|
||||
|
||||
# Gerar CPU profile (30 segundos)
|
||||
curl http://localhost:4000/debug/pprof/profile?seconds=30 > cpu.prof
|
||||
|
||||
# Analisar
|
||||
go tool pprof cpu.prof
|
||||
|
||||
# Comandos no pprof:
|
||||
# top10 - Top 10 funções
|
||||
# list <func> - Código da função
|
||||
# web - Visualização gráfica (requer graphviz)
|
||||
```
|
||||
|
||||
### Memory Profiling
|
||||
|
||||
```bash
|
||||
# Heap snapshot
|
||||
curl http://localhost:4000/debug/pprof/heap > heap.prof
|
||||
|
||||
# Analisar
|
||||
go tool pprof heap.prof
|
||||
|
||||
# Visualizar em browser
|
||||
go tool pprof -http=:8081 heap.prof
|
||||
```
|
||||
|
||||
### Goroutine Leaks
|
||||
|
||||
```bash
|
||||
# Ver goroutines ativas
|
||||
curl http://localhost:4000/debug/pprof/goroutine?debug=1
|
||||
|
||||
# Profile de goroutines
|
||||
curl http://localhost:4000/debug/pprof/goroutine > goroutine.prof
|
||||
go tool pprof goroutine.prof
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Análise de Banco de Dados
|
||||
|
||||
### Queries Lentas
|
||||
|
||||
```sql
|
||||
-- Habilitar log de queries lentas (PostgreSQL)
|
||||
ALTER DATABASE evogo_users SET log_min_duration_statement = 1000;
|
||||
|
||||
-- Ver queries lentas
|
||||
SELECT query, calls, total_time, mean_time
|
||||
FROM pg_stat_statements
|
||||
ORDER BY mean_time DESC
|
||||
LIMIT 10;
|
||||
```
|
||||
|
||||
### Ver Conexões Ativas
|
||||
|
||||
```sql
|
||||
-- PostgreSQL
|
||||
SELECT count(*) FROM pg_stat_activity;
|
||||
|
||||
SELECT datname, usename, state, query
|
||||
FROM pg_stat_activity
|
||||
WHERE datname IN ('evogo_auth', 'evogo_users');
|
||||
```
|
||||
|
||||
### Índices Faltantes
|
||||
|
||||
```sql
|
||||
-- Verificar scans sequenciais (ruim)
|
||||
SELECT schemaname, tablename, seq_scan, seq_tup_read
|
||||
FROM pg_stat_user_tables
|
||||
WHERE seq_scan > 0
|
||||
ORDER BY seq_tup_read DESC
|
||||
LIMIT 10;
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Network Debugging
|
||||
|
||||
### Testar Conectividade
|
||||
|
||||
```bash
|
||||
# Testar se porta está aberta
|
||||
nc -zv localhost 4000
|
||||
|
||||
# Testar endpoint
|
||||
curl -v http://localhost:4000/server/ok
|
||||
|
||||
# Com proxy
|
||||
curl -x http://proxy:8080 http://localhost:4000/server/ok
|
||||
```
|
||||
|
||||
### Capturar Tráfego HTTP
|
||||
|
||||
```bash
|
||||
# tcpdump
|
||||
sudo tcpdump -i any -A 'port 4000'
|
||||
|
||||
# Wireshark
|
||||
# Filtro: tcp.port == 4000
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Ferramentas Úteis
|
||||
|
||||
### 1. delve (Go Debugger)
|
||||
|
||||
```bash
|
||||
# Instalar
|
||||
go install github.com/go-delve/delve/cmd/dlv@latest
|
||||
|
||||
# Debug
|
||||
dlv debug cmd/evolution-go/main.go -- -dev
|
||||
|
||||
# Comandos:
|
||||
# break main.main - Breakpoint
|
||||
# continue - Continuar
|
||||
# next - Próxima linha
|
||||
# print var - Imprimir variável
|
||||
```
|
||||
|
||||
### 2. Postman/Insomnia
|
||||
|
||||
Importar collection Swagger:
|
||||
- URL: http://localhost:4000/swagger/doc.json
|
||||
|
||||
### 3. pgAdmin / DBeaver
|
||||
|
||||
Conectar ao PostgreSQL:
|
||||
- Host: localhost
|
||||
- Port: 5432
|
||||
- Database: evogo_users
|
||||
- Username: postgres
|
||||
|
||||
### 4. Docker Stats
|
||||
|
||||
```bash
|
||||
# Ver uso de recursos
|
||||
docker stats evolution-go
|
||||
|
||||
# Inspecionar container
|
||||
docker inspect evolution-go
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Checklist de Troubleshooting
|
||||
|
||||
Quando algo não funciona:
|
||||
|
||||
1. ✅ Verificar logs: `docker-compose logs -f`
|
||||
2. ✅ Verificar .env: variáveis corretas?
|
||||
3. ✅ Verificar PostgreSQL: está rodando?
|
||||
4. ✅ Verificar porta: 4000 livre?
|
||||
5. ✅ Verificar API key: está correta?
|
||||
6. ✅ Testar health check: `/server/ok`
|
||||
7. ✅ Verificar Swagger: documentação atualizada?
|
||||
8. ✅ Verificar versão Go: 1.24+?
|
||||
|
||||
---
|
||||
|
||||
## Recursos Adicionais
|
||||
|
||||
- **Go Debugging**: https://go.dev/doc/gdb
|
||||
- **GORM Debugging**: https://gorm.io/docs/logger.html
|
||||
- **Gin Debugging**: https://gin-gonic.com/docs/examples/
|
||||
|
||||
---
|
||||
|
||||
**Mantido por**: Equipe EvoAI Services
|
||||
@@ -0,0 +1,773 @@
|
||||
# Guia de Desenvolvimento
|
||||
|
||||
Guia completo para desenvolver e contribuir com o Evolution GO.
|
||||
|
||||
## Índice
|
||||
|
||||
- [Visão Geral](#visão-geral)
|
||||
- [Requisitos](#requisitos)
|
||||
- [Setup Inicial](#setup-inicial)
|
||||
- [Estrutura do Projeto](#estrutura-do-projeto)
|
||||
- [Executando Localmente](#executando-localmente)
|
||||
- [Makefile e Comandos](#makefile-e-comandos)
|
||||
- [Configuração de IDE](#configuração-de-ide)
|
||||
- [Convenções de Código](#convenções-de-código)
|
||||
- [Workflow de Desenvolvimento](#workflow-de-desenvolvimento)
|
||||
- [Próximos Passos](#próximos-passos)
|
||||
|
||||
---
|
||||
|
||||
## Visão Geral
|
||||
|
||||
O Evolution GO é um **gateway de API WhatsApp** escrito em Go, utilizando:
|
||||
|
||||
- **Linguagem**: Go 1.24+
|
||||
- **Framework Web**: Gin
|
||||
- **ORM**: GORM
|
||||
- **Banco de Dados**: PostgreSQL / SQLite
|
||||
- **WhatsApp Library**: whatsmeow
|
||||
- **Documentação API**: Swagger
|
||||
|
||||
---
|
||||
|
||||
## Requisitos
|
||||
|
||||
### Obrigatórios
|
||||
|
||||
- **Go 1.24+** ([Download](https://go.dev/dl/))
|
||||
- **Git** ([Download](https://git-scm.com/downloads))
|
||||
- **PostgreSQL 12+** ([Download](https://www.postgresql.org/download/))
|
||||
- Ou usar Docker: `docker run -d -p 5432:5432 -e POSTGRES_PASSWORD=postgres postgres:15-alpine`
|
||||
|
||||
### Opcionais
|
||||
|
||||
- **Make** (incluído no Linux/Mac, Windows: `choco install make`)
|
||||
- **Docker** e **Docker Compose** (para desenvolvimento com containers)
|
||||
- **RabbitMQ** (para testar sistema de eventos)
|
||||
- **MinIO** (para testar armazenamento de mídia)
|
||||
|
||||
### Ferramentas Recomendadas
|
||||
|
||||
- **IDE**: VSCode, GoLand, ou Vim/Neovim
|
||||
- **Postman** ou **Insomnia** (para testar API)
|
||||
- **PostgreSQL Client**: pgAdmin, DBeaver, ou psql
|
||||
- **Git GUI**: GitKraken, Sourcetree (opcional)
|
||||
|
||||
---
|
||||
|
||||
## Setup Inicial
|
||||
|
||||
### 1. Clonar o Repositório
|
||||
|
||||
```bash
|
||||
# Via HTTPS
|
||||
git clone https://git.evoai.app/Evolution/evolution-go.git
|
||||
cd evolution-go
|
||||
|
||||
# Ou via SSH (se configurado)
|
||||
git clone [email protected]:Evolution/evolution-go.git
|
||||
cd evolution-go
|
||||
```
|
||||
|
||||
### 2. Instalar Dependências Go
|
||||
|
||||
```bash
|
||||
# Baixar dependências
|
||||
go mod download
|
||||
|
||||
# Ou usando Make
|
||||
make deps
|
||||
```
|
||||
|
||||
### 3. Configurar PostgreSQL
|
||||
|
||||
**Opção A: PostgreSQL Local**
|
||||
|
||||
```bash
|
||||
# Ubuntu/Debian
|
||||
sudo apt-get install postgresql postgresql-contrib
|
||||
sudo systemctl start postgresql
|
||||
|
||||
# macOS
|
||||
brew install postgresql@15
|
||||
brew services start postgresql@15
|
||||
|
||||
# Criar databases
|
||||
sudo -u postgres psql << EOF
|
||||
CREATE DATABASE evogo_auth;
|
||||
CREATE DATABASE evogo_users;
|
||||
EOF
|
||||
```
|
||||
|
||||
**Opção B: PostgreSQL via Docker**
|
||||
|
||||
```bash
|
||||
docker run -d \
|
||||
--name postgres \
|
||||
-p 5432:5432 \
|
||||
-e POSTGRES_PASSWORD=postgres \
|
||||
-v postgres_data:/var/lib/postgresql/data \
|
||||
postgres:15-alpine
|
||||
|
||||
# Criar databases
|
||||
docker exec -i postgres psql -U postgres << EOF
|
||||
CREATE DATABASE evogo_auth;
|
||||
CREATE DATABASE evogo_users;
|
||||
EOF
|
||||
```
|
||||
|
||||
### 4. Configurar Variáveis de Ambiente
|
||||
|
||||
```bash
|
||||
# Copiar arquivo de exemplo
|
||||
cp .env.example .env
|
||||
|
||||
# Editar configurações
|
||||
nano .env
|
||||
```
|
||||
|
||||
**Configuração mínima (.env)**:
|
||||
|
||||
```env
|
||||
# Servidor
|
||||
SERVER_PORT=4000
|
||||
CLIENT_NAME=evolution-dev
|
||||
|
||||
# API Key (gere uma segura)
|
||||
GLOBAL_API_KEY=dev-key-12345
|
||||
|
||||
# PostgreSQL
|
||||
POSTGRES_AUTH_DB=postgresql://postgres:postgres@localhost:5432/evogo_auth?sslmode=disable
|
||||
POSTGRES_USERS_DB=postgresql://postgres:postgres@localhost:5432/evogo_users?sslmode=disable
|
||||
DATABASE_SAVE_MESSAGES=false
|
||||
|
||||
# Logs
|
||||
WADEBUG=DEBUG
|
||||
LOGTYPE=console
|
||||
|
||||
# Configurações de desenvolvimento
|
||||
CONNECT_ON_STARTUP=false
|
||||
WEBHOOKFILES=true
|
||||
OS_NAME=Linux
|
||||
```
|
||||
|
||||
### 5. Verificar Instalação
|
||||
|
||||
```bash
|
||||
# Verificar versão do Go
|
||||
go version
|
||||
# Deve mostrar: go version go1.24.x ...
|
||||
|
||||
# Verificar dependências
|
||||
go mod verify
|
||||
|
||||
# Compilar (teste)
|
||||
go build ./cmd/evolution-go
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Estrutura do Projeto
|
||||
|
||||
```
|
||||
evolution-go/
|
||||
├── cmd/
|
||||
│ └── evolution-go/
|
||||
│ └── main.go # Entry point da aplicação
|
||||
│
|
||||
├── pkg/ # Pacotes principais
|
||||
│ ├── config/ # Configuração e env vars
|
||||
│ │ ├── config.go
|
||||
│ │ └── env.go
|
||||
│ │
|
||||
│ ├── instance/ # Gerenciamento de instâncias
|
||||
│ │ ├── handler.go # HTTP handlers
|
||||
│ │ ├── service.go # Lógica de negócio
|
||||
│ │ ├── repository.go # Acesso ao banco
|
||||
│ │ └── model/
|
||||
│ │ └── instance_model.go
|
||||
│ │
|
||||
│ ├── whatsmeow/ # Cliente WhatsApp
|
||||
│ │ ├── whatsmeow.go
|
||||
│ │ └── events.go
|
||||
│ │
|
||||
│ ├── message/ # Mensagens
|
||||
│ │ ├── handler.go
|
||||
│ │ ├── service.go
|
||||
│ │ ├── repository.go
|
||||
│ │ └── model/
|
||||
│ │
|
||||
│ ├── sendMessage/ # Envio de mensagens
|
||||
│ │ ├── handler.go
|
||||
│ │ └── service.go
|
||||
│ │
|
||||
│ ├── events/ # Produtores de eventos
|
||||
│ │ ├── webhook/
|
||||
│ │ ├── rabbitmq/
|
||||
│ │ ├── nats/
|
||||
│ │ └── websocket/
|
||||
│ │
|
||||
│ ├── storage/ # Armazenamento de mídia
|
||||
│ │ ├── media_storage.go
|
||||
│ │ └── minio/
|
||||
│ │
|
||||
│ └── utils/ # Utilitários
|
||||
│ ├── logger/
|
||||
│ └── validator/
|
||||
│
|
||||
├── docs/ # Documentação Swagger
|
||||
│ ├── docs.go
|
||||
│ ├── swagger.json
|
||||
│ └── swagger.yaml
|
||||
│
|
||||
├── docker/ # Configurações Docker
|
||||
│ └── examples/
|
||||
│ ├── docker-compose.yml
|
||||
│ ├── docker-compose.swarm.yml
|
||||
│ └── .env.example
|
||||
│
|
||||
├── Dockerfile # Imagem Docker
|
||||
├── Makefile # Comandos de automação
|
||||
├── go.mod # Dependências Go
|
||||
├── go.sum # Checksums de dependências
|
||||
├── .env.example # Exemplo de variáveis de ambiente
|
||||
└── README.md # Documentação principal
|
||||
```
|
||||
|
||||
### Arquitetura em Camadas
|
||||
|
||||
Cada módulo segue o padrão **Handler → Service → Repository**:
|
||||
|
||||
```
|
||||
┌─────────────┐
|
||||
│ Handler │ ← Recebe requests HTTP (Gin)
|
||||
└──────┬──────┘
|
||||
│
|
||||
▼
|
||||
┌─────────────┐
|
||||
│ Service │ ← Lógica de negócio
|
||||
└──────┬──────┘
|
||||
│
|
||||
▼
|
||||
┌─────────────┐
|
||||
│ Repository │ ← Acesso ao banco (GORM)
|
||||
└─────────────┘
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Executando Localmente
|
||||
|
||||
### Modo Desenvolvimento (Hot Reload)
|
||||
|
||||
```bash
|
||||
# Executar em modo dev
|
||||
make dev
|
||||
|
||||
# Ou diretamente
|
||||
go run cmd/evolution-go/main.go -dev
|
||||
```
|
||||
|
||||
**Saída esperada**:
|
||||
|
||||
```
|
||||
[GIN-debug] [WARNING] Creating an Engine instance with the Logger and Recovery middleware already attached.
|
||||
[GIN-debug] [WARNING] Running in "debug" mode. Switch to "release" mode in production.
|
||||
[GIN-debug] GET /swagger/*any --> github.com/swaggo/gin-swagger.CustomWrapHandler.func1 (3 handlers)
|
||||
[GIN-debug] GET /server/ok --> main.main.func1 (3 handlers)
|
||||
[GIN-debug] POST /instance/create --> evolution-go/pkg/instance.(*InstanceHandler).Create-fm (4 handlers)
|
||||
...
|
||||
[GIN-debug] Listening and serving HTTP on :4000
|
||||
```
|
||||
|
||||
### Build e Executar
|
||||
|
||||
```bash
|
||||
# Build local
|
||||
make build-local
|
||||
|
||||
# Executar binário
|
||||
./build/evolution-go
|
||||
```
|
||||
|
||||
### Com Docker Compose
|
||||
|
||||
```bash
|
||||
# Copiar exemplo
|
||||
cp docker/examples/docker-compose.yml ./
|
||||
|
||||
# Editar GLOBAL_API_KEY
|
||||
nano docker-compose.yml
|
||||
|
||||
# Iniciar
|
||||
docker-compose up -d
|
||||
|
||||
# Ver logs
|
||||
docker-compose logs -f evolution-go
|
||||
```
|
||||
|
||||
### Acessar a Aplicação
|
||||
|
||||
- **API Base**: http://localhost:4000
|
||||
- **Health Check**: http://localhost:4000/server/ok
|
||||
- **Swagger UI**: http://localhost:4000/swagger/index.html
|
||||
|
||||
---
|
||||
|
||||
## Makefile e Comandos
|
||||
|
||||
### Comandos de Desenvolvimento
|
||||
|
||||
```bash
|
||||
# Executar em modo dev (hot reload)
|
||||
make dev
|
||||
|
||||
# Build para produção (Linux)
|
||||
make build
|
||||
|
||||
# Build local (seu SO)
|
||||
make build-local
|
||||
|
||||
# Build e executar
|
||||
make run
|
||||
```
|
||||
|
||||
### Comandos de Qualidade
|
||||
|
||||
```bash
|
||||
# Instalar dependências
|
||||
make deps
|
||||
|
||||
# Atualizar dependências
|
||||
make deps-update
|
||||
|
||||
# Formatar código
|
||||
make fmt
|
||||
|
||||
# Lint (fmt + vet)
|
||||
make lint
|
||||
|
||||
# Verificar tudo (deps + lint)
|
||||
make check
|
||||
```
|
||||
|
||||
### Comandos de Documentação
|
||||
|
||||
```bash
|
||||
# Gerar documentação Swagger
|
||||
make swagger
|
||||
|
||||
# Requer: go install github.com/swaggo/swag/cmd/swag@latest
|
||||
```
|
||||
|
||||
### Comandos Docker
|
||||
|
||||
```bash
|
||||
# Build imagem Docker
|
||||
make docker-build
|
||||
|
||||
# Executar container
|
||||
make docker-run
|
||||
|
||||
# Executar em modo dev
|
||||
make docker-run-dev
|
||||
|
||||
# Limpar imagens
|
||||
make docker-clean
|
||||
```
|
||||
|
||||
### Comandos Auxiliares
|
||||
|
||||
```bash
|
||||
# Ver logs
|
||||
make logs
|
||||
|
||||
# Limpar builds
|
||||
make clean
|
||||
|
||||
# Setup completo (deps + tools)
|
||||
make setup
|
||||
|
||||
# Quick start
|
||||
make quick-start
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Configuração de IDE
|
||||
|
||||
### Visual Studio Code
|
||||
|
||||
#### Extensões Recomendadas
|
||||
|
||||
```json
|
||||
{
|
||||
"recommendations": [
|
||||
"golang.go", // Go support
|
||||
"ms-vscode.makefile-tools", // Makefile support
|
||||
"humao.rest-client", // REST client
|
||||
"42crunch.vscode-openapi", // Swagger/OpenAPI
|
||||
"streetsidesoftware.code-spell-checker"
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Salvar em `.vscode/extensions.json`.
|
||||
|
||||
#### Settings
|
||||
|
||||
```json
|
||||
{
|
||||
"go.useLanguageServer": true,
|
||||
"go.lintTool": "golangci-lint",
|
||||
"go.lintOnSave": "package",
|
||||
"go.formatTool": "goimports",
|
||||
"editor.formatOnSave": true,
|
||||
"go.testFlags": ["-v"],
|
||||
"go.coverOnSave": false,
|
||||
"[go]": {
|
||||
"editor.codeActionsOnSave": {
|
||||
"source.organizeImports": true
|
||||
}
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
Salvar em `.vscode/settings.json`.
|
||||
|
||||
#### Tasks
|
||||
|
||||
```json
|
||||
{
|
||||
"version": "2.0.0",
|
||||
"tasks": [
|
||||
{
|
||||
"label": "Run Dev",
|
||||
"type": "shell",
|
||||
"command": "make dev",
|
||||
"group": {
|
||||
"kind": "build",
|
||||
"isDefault": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"label": "Build",
|
||||
"type": "shell",
|
||||
"command": "make build-local"
|
||||
},
|
||||
{
|
||||
"label": "Lint",
|
||||
"type": "shell",
|
||||
"command": "make lint"
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Salvar em `.vscode/tasks.json`.
|
||||
|
||||
#### Launch (Debug)
|
||||
|
||||
```json
|
||||
{
|
||||
"version": "0.2.0",
|
||||
"configurations": [
|
||||
{
|
||||
"name": "Launch Evolution GO",
|
||||
"type": "go",
|
||||
"request": "launch",
|
||||
"mode": "debug",
|
||||
"program": "${workspaceFolder}/cmd/evolution-go",
|
||||
"args": ["-dev"],
|
||||
"env": {
|
||||
"WADEBUG": "DEBUG"
|
||||
},
|
||||
"showLog": true
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
|
||||
Salvar em `.vscode/launch.json`.
|
||||
|
||||
### GoLand / IntelliJ IDEA
|
||||
|
||||
#### Run Configuration
|
||||
|
||||
1. **Run → Edit Configurations**
|
||||
2. **Add New Configuration → Go Build**
|
||||
3. Configurar:
|
||||
- **Name**: Evolution GO Dev
|
||||
- **Run kind**: Directory
|
||||
- **Directory**: `cmd/evolution-go`
|
||||
- **Program arguments**: `-dev`
|
||||
- **Environment**: `WADEBUG=DEBUG`
|
||||
- **Working directory**: Raiz do projeto
|
||||
|
||||
#### File Watchers (opcional)
|
||||
|
||||
1. **Settings → Tools → File Watchers**
|
||||
2. **Add → go fmt**
|
||||
3. **Add → goimports**
|
||||
|
||||
---
|
||||
|
||||
## Convenções de Código
|
||||
|
||||
### Estrutura de Pacotes
|
||||
|
||||
```go
|
||||
// Cada módulo deve ter:
|
||||
package instance
|
||||
|
||||
// handler.go - HTTP handlers
|
||||
type InstanceHandler struct {
|
||||
service InstanceService
|
||||
}
|
||||
|
||||
func (h *InstanceHandler) Create(c *gin.Context) { }
|
||||
|
||||
// service.go - Lógica de negócio
|
||||
type InstanceService interface {
|
||||
Create(data CreateInstanceDTO) (*Instance, error)
|
||||
}
|
||||
|
||||
// repository.go - Banco de dados
|
||||
type InstanceRepository interface {
|
||||
Save(instance *Instance) error
|
||||
FindByID(id string) (*Instance, error)
|
||||
}
|
||||
|
||||
// model/instance_model.go - Structs
|
||||
type Instance struct {
|
||||
Id string
|
||||
Name string
|
||||
}
|
||||
```
|
||||
|
||||
### Nomenclatura
|
||||
|
||||
```go
|
||||
// Variáveis: camelCase
|
||||
var instanceName string
|
||||
|
||||
// Constantes: PascalCase ou UPPER_CASE
|
||||
const MaxRetries = 5
|
||||
const DEFAULT_TIMEOUT = 30
|
||||
|
||||
// Structs: PascalCase
|
||||
type InstanceConfig struct { }
|
||||
|
||||
// Interfaces: PascalCase + sufixo "er" ou nome descritivo
|
||||
type InstanceRepository interface { }
|
||||
type MessageSender interface { }
|
||||
|
||||
// Métodos: PascalCase
|
||||
func (h *Handler) CreateInstance() { }
|
||||
|
||||
// Funções privadas: camelCase
|
||||
func parseConfig() { }
|
||||
|
||||
// Funções públicas: PascalCase
|
||||
func NewInstanceHandler() { }
|
||||
```
|
||||
|
||||
### Comentários
|
||||
|
||||
```go
|
||||
// Comentários de package (em <package>_doc.go ou no arquivo principal)
|
||||
// Package instance fornece gerenciamento de instâncias WhatsApp.
|
||||
package instance
|
||||
|
||||
// Comentários de funções exportadas (obrigatório para Swagger)
|
||||
// CreateInstance cria uma nova instância WhatsApp.
|
||||
//
|
||||
// @Summary Criar instância
|
||||
// @Description Cria uma nova instância WhatsApp
|
||||
// @Tags instance
|
||||
// @Accept json
|
||||
// @Produce json
|
||||
// @Param data body CreateInstanceDTO true "Dados da instância"
|
||||
// @Success 201 {object} Instance
|
||||
// @Failure 400 {object} ErrorResponse
|
||||
// @Router /instance/create [post]
|
||||
func (h *InstanceHandler) CreateInstance(c *gin.Context) {
|
||||
// Implementação...
|
||||
}
|
||||
|
||||
// Comentários inline para lógica complexa
|
||||
// Gera UUID v4 para identificação única
|
||||
instanceID := uuid.New().String()
|
||||
```
|
||||
|
||||
### Tratamento de Erros
|
||||
|
||||
```go
|
||||
// Sempre retornar erros, não panic
|
||||
func CreateInstance(name string) (*Instance, error) {
|
||||
if name == "" {
|
||||
return nil, fmt.Errorf("name cannot be empty")
|
||||
}
|
||||
|
||||
instance := &Instance{Name: name}
|
||||
if err := repository.Save(instance); err != nil {
|
||||
return nil, fmt.Errorf("failed to save instance: %w", err)
|
||||
}
|
||||
|
||||
return instance, nil
|
||||
}
|
||||
|
||||
// Em handlers HTTP
|
||||
func (h *Handler) Create(c *gin.Context) {
|
||||
var dto CreateDTO
|
||||
if err := c.ShouldBindJSON(&dto); err != nil {
|
||||
c.JSON(400, gin.H{"error": err.Error()})
|
||||
return
|
||||
}
|
||||
|
||||
instance, err := h.service.Create(dto)
|
||||
if err != nil {
|
||||
logger.LogError("Failed to create instance: %v", err)
|
||||
c.JSON(500, gin.H{"error": "Internal server error"})
|
||||
return
|
||||
}
|
||||
|
||||
c.JSON(201, instance)
|
||||
}
|
||||
```
|
||||
|
||||
### Logging
|
||||
|
||||
```go
|
||||
import "evolution-go/pkg/utils/logger"
|
||||
|
||||
// Níveis de log
|
||||
logger.LogInfo("Instance %s created successfully", instanceName)
|
||||
logger.LogWarn("Webhook URL not configured for instance %s", instanceName)
|
||||
logger.LogError("Failed to connect to database: %v", err)
|
||||
logger.LogDebug("Processing message: %+v", message)
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Workflow de Desenvolvimento
|
||||
|
||||
### 1. Criar Branch
|
||||
|
||||
```bash
|
||||
# Atualizar main
|
||||
git checkout main
|
||||
git pull origin main
|
||||
|
||||
# Criar feature branch
|
||||
git checkout -b feature/nome-da-feature
|
||||
|
||||
# Ou bugfix
|
||||
git checkout -b fix/nome-do-bug
|
||||
```
|
||||
|
||||
### 2. Desenvolver
|
||||
|
||||
```bash
|
||||
# Executar em modo dev
|
||||
make dev
|
||||
|
||||
# Em outro terminal, fazer mudanças no código
|
||||
# O servidor reinicia automaticamente com hot-reload
|
||||
```
|
||||
|
||||
### 3. Testar Manualmente
|
||||
|
||||
```bash
|
||||
# Testar health check
|
||||
curl http://localhost:4000/server/ok
|
||||
|
||||
# Criar instância
|
||||
curl -X POST http://localhost:4000/instance/create \
|
||||
-H "Content-Type: application/json" \
|
||||
-H "apikey: dev-key-12345" \
|
||||
-d '{"instanceName": "teste"}'
|
||||
|
||||
# Verificar Swagger
|
||||
open http://localhost:4000/swagger/index.html
|
||||
```
|
||||
|
||||
### 4. Formatar e Lint
|
||||
|
||||
```bash
|
||||
# Formatar código
|
||||
make fmt
|
||||
|
||||
# Lint
|
||||
make lint
|
||||
```
|
||||
|
||||
### 5. Atualizar Swagger (se alterou endpoints)
|
||||
|
||||
```bash
|
||||
# Gerar documentação
|
||||
make swagger
|
||||
|
||||
# Verificar se docs/ foi atualizado
|
||||
git status
|
||||
```
|
||||
|
||||
### 6. Commit
|
||||
|
||||
```bash
|
||||
# Add mudanças
|
||||
git add .
|
||||
|
||||
# Commit com mensagem descritiva
|
||||
git commit -m "feat: adiciona endpoint de listagem de instâncias
|
||||
|
||||
- Implementa GET /instance/list
|
||||
- Adiciona paginação
|
||||
- Atualiza documentação Swagger"
|
||||
|
||||
# Padrões de commit:
|
||||
# feat: nova feature
|
||||
# fix: correção de bug
|
||||
# docs: documentação
|
||||
# refactor: refatoração
|
||||
# chore: tarefas de manutenção
|
||||
```
|
||||
|
||||
### 7. Push e Pull Request
|
||||
|
||||
```bash
|
||||
# Push para origin
|
||||
git push origin feature/nome-da-feature
|
||||
|
||||
# Criar PR no GitLab/GitHub
|
||||
# Preencher descrição detalhada
|
||||
# Aguardar code review
|
||||
```
|
||||
|
||||
---
|
||||
|
||||
## Próximos Passos
|
||||
|
||||
Após setup completo:
|
||||
|
||||
1. **[Como Contribuir](./contributing.md)** - Processo de contribuição e PR
|
||||
2. **[Debugging](./debugging.md)** - Troubleshooting e resolução de problemas
|
||||
3. **[Arquitetura](../conceitos-core/architecture.md)** - Entenda a arquitetura
|
||||
4. **[API Overview](../guias-api/api-overview.md)** - Comece a desenvolver na API
|
||||
|
||||
---
|
||||
|
||||
## Recursos Adicionais
|
||||
|
||||
- **Documentação Go**: https://go.dev/doc/
|
||||
- **GORM**: https://gorm.io/docs/
|
||||
- **Gin Framework**: https://gin-gonic.com/docs/
|
||||
- **Whatsmeow**: https://github.com/tulir/whatsmeow
|
||||
- **Swagger**: https://swagger.io/docs/
|
||||
|
||||
---
|
||||
|
||||
**Dica**: Use `make help` para ver todos os comandos disponíveis!
|
||||
|
||||
**Mantido por**: Equipe EvoAI Services
|
||||
**Versão**: 1.0.0
|
||||
Reference in new issue
Block a user