Api Exemple Go
Example API with Golang using Gin, PostgreSQL, PGX, JWT and Swagger.
Install / Use
npx skills add raimundo-ferreira/api-exemple-goInstalls into whichever agent you are using.
README
📖 Exemple: API with Golang
Example API with Golang using Gin, PostgreSQL, PGX, JWT and Swagger.
Packages
go get -u github.com/gin-gonic/gin
go get -u github.com/jackc/pgx/v5
go get -u github.com/golang-jwt/jwt/v5
go get github.com/joho/godotenv/cmd/godotenv
go install github.com/swaggo/swag/cmd/swag@latest
go get -u github.com/swaggo/gin-swagger
go get -u github.com/swaggo/files
Quick start
- Create database in postgresql and execute the scrip "internal/database/schema.sql"
- Open the
.envand fill it with your environment values. - Run the project with the commands:
swag init
go run .
# Process:
# - Generate API docs by Swagger
# - Execute api
- Go to your API Docs page: 127.0.0.1:5000/swagger/index.html
- Use access key "42975313-085b-4c09-90c0-11fe6ba6de5d" to register a user
Related Skills
codebase-memory-mcp
38.1kHigh-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
codebase-memory-mcp
38.1kHigh-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
codebase-memory-mcp
38.1kHigh-performance code intelligence MCP server. Indexes codebases into a persistent knowledge graph — average repo in milliseconds. 158 languages, sub-ms queries, 99% fewer tokens. Single static binary, zero dependencies.
tabularis
4.0kOpen-source desktop SQL workspace for PostgreSQL, MySQL/MariaDB, SQLite and 15+ more databases like DuckDB, ClickHouse, Redis and Firestore. Built-in MCP server for Claude, Cursor and Devin, SQL notebooks and visual EXPLAIN.
