MCPcopy Index your code
hub / github.com/dogukanoksuz/go-rest-api-boilerplate

github.com/dogukanoksuz/go-rest-api-boilerplate @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
28 symbols 90 edges 20 files 0 documented · 0% updated 2y agorelease.11 · 2022-05-01★ 38
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Golang REST API Boilerplate

This project is an example of how can we create REST API's with Golang using Gofiber.

Feature List

  • Different database adapter support
  • Singleton database connection pattern
  • Integration tests
  • Global error handling
  • Example middlewares
  • Example CRUD pattern implementation with Models and Controllers

API Documentation

https://documenter.getpostman.com/view/11074048/UVsJvRfY

Blog post:

https://dogukan.dev/golang-rest-api-crud-islemleri.html

Core symbols most depended-on inside this repo

Connection
called by 4
internal/database/connection.go
initializeMysql
called by 1
internal/database/mysql.go
initializePostgres
called by 1
internal/database/postgres.go
initialize
called by 1
internal/database/connection.go
Migrate
called by 1
internal/migrations/migrate.go
Delete
called by 1
app/controllers/post/delete.go
Logger
called by 1
app/middleware/logger.go
HelloRoutes
called by 1
app/routes/hello.go

Shape

Function 14
Method 8
Struct 5
TypeAlias 1

Languages

Go100%

Modules by API surface

app/models/base.go6 symbols
internal/database/connection.go2 symbols
app/controllers/post/index_test.go2 symbols
app/controllers/post/index.go2 symbols
app/controllers/post/create_test.go2 symbols
internal/migrations/migrate.go1 symbols
internal/database/postgres.go1 symbols
internal/database/mysql.go1 symbols
cmd/server/main.go1 symbols
app/routes/post.go1 symbols
app/routes/hello.go1 symbols
app/models/post.go1 symbols

For agents

$ claude mcp add go-rest-api-boilerplate \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page