Skip to content

giovanniussuy/gdev-go-lang

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

gdev-go-lang

Project with live situations and learnings

abre a pasta main

go mod tidy go build go run main.go

google.github.io/styleguide/go

fiber + goccy

go get github.com/goccy/go-json

-import "encoding/json" +import "github.com/goccy/go-json"

fasthttp

https://github.com/valyala/fasthttp

debug local

{ // 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" } } ] }

go swagger

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

-- http://localhost:8080/swagger/index.html

About

Project with live situations and learnings

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages