Discover Packages
github.com/luciano-personal-org/debug
package
module
Version:
v0.1.6
Opens a new window with list of versions in this module.
Published: Dec 4, 2024
License: BSD-2-Clause
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
Go-Lang API Scaffold
Scaffold project for APIs created on Bebet
Framework
Web : GoFiber
Validation : Go-Ozzo
Configuration : GoDotEnv
Log : Fiberzap
Swagger : swagger contrib gofiber
Architecture
Controller -> Service -> Repository
Environment required to run
File .env
MONGO_URI=mongodb://mongo:mongo@localhost:27017 # replace localhost with your mongo host if you are using docker
MONGO_DATABASE=golang
MONGO_POOL_MIN=10
MONGO_POOL_MAX=100
MONGO_MAX_IDLE_TIME_SECOND=60
Docker and Docker-Compose
AIR (Hot reload)
Air is a tool to hot reload your code when you save it.
Install:
curl -sSfL https://raw.githubusercontent.com/cosmtrek/air/master/install.sh | sh -s -- -b $(go env GOPATH)/bin
Running
docker-compose up -d
air
Expand ▾
Collapse ▴
Documentation
¶
View Source
const (
INFO = "INFO"
STACKTRACE = "STACK"
MEMSTATS = "MEM"
GCSTATS = "GC"
BUILDSTATS = "BUILD"
ALLSTATS = "ALL"
)
DebugOptions is a type for debug options
PrintDebug prints debug information
type DebugOptions struct {
Enabled bool
Level string
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.