goAPIBaseProject

command module
v0.0.0-...-526cc90 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 28, 2023 License: GPL-3.0 Imports: 1 Imported by: 0

README

Go Simple API Project

Go Reference Go Report Card

This project made to combine some pretty beautiful thing together

This project is using

Project files structure

  • logger: package for logging on top of sirupsen/logrus with option to sent logs to Sentry
  • httpHandlers: all of the http handlers should be here
  • httpServer: http server components are here ready to use
  • type: every type that we want every where should be here
  • configuration: on top of ilyakaznacheev/cleanenv this will manage our configurations with a simple function that returns a variable with Configuration struct
  • air: executable version of cosmtrek/air is here to help you with live reloading you code (configuration for that is present here)
  • validator: package for validating our things

TODO

Moved to GitHub Project

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
configuration implimentation is here
configuration implimentation is here
Package database this package made to manage database actions and connections on top of an ORM this package is just a sample change it to whatever you need checkout this link https://gitea.com/xorm/xorm I would recommend to use EngineGroup (this is just a demo)
Package database this package made to manage database actions and connections on top of an ORM this package is just a sample change it to whatever you need checkout this link https://gitea.com/xorm/xorm I would recommend to use EngineGroup (this is just a demo)
all http handlers are here
all http handlers are here
our custom http server goes here (with logging middleware is here)
our custom http server goes here (with logging middleware is here)
Package logger logging module with sentry capture on top of logrus TODO: also send logs to logstash
Package logger logging module with sentry capture on top of logrus TODO: also send logs to logstash
Package types all types are here
Package types all types are here
a package for validating things (like structs, json, etc) based on github.com/go-playground/validator/v10
a package for validating things (like structs, json, etc) based on github.com/go-playground/validator/v10

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL