Project with live situations and learnings
abre a pasta main
go mod tidy go build go run main.go
google.github.io/styleguide/go
go get github.com/goccy/go-json
-import "encoding/json" +import "github.com/goccy/go-json"
https://github.com/valyala/fasthttp
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "Launch Package", "type": "go", "request": "launch", "mode": "debug", "program": "./cmd/main.go", "env": { "NOTHING_HOST": "nothig.com.br" } } ] }
para utilizar o swag do go precisa colocar a var SWAG em variaveis de ambiente
SWAG = C:\Users\giova\go\bin Path = %SWAG%
instalar o swag go get github.com/swaggo/swag/cmd/swag swag init -g cmd/main.go go get -u github.com/swaggo/fiber-swagger import "github.com/swaggo/fiber-swagger" // fiber-swagger middleware // esse import não funfa, mas basta adicionar manualmente a rota do swagger no router