Categorygithub.com/ariel17/golang-base
modulepackage
0.0.0-20220408233719-f59250d67a31
Repository: https://github.com/ariel17/golang-base.git
Documentation: pkg.go.dev

# README

Golang base

This is a project template for future Golang projects of my own.

Features

  • Simple environment variables picking and setting.
  • Basic Docker configuration file to build images for production.
  • Testing frameworks added.
  • Gin-Gonic HTTP framework port 8080 (configurable through env), with status handler.

Usage

Build Docker image

docker build . -t ariel17/base

Using environment variables file

Add keys to .env file:

MY_SECRET_KEY1=v4lu3!#

Make Docker pick them as follows:

docker run --env-file .env ariel17/base

Build Swagger documentation

swag init -o api

# Packages

Package server GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag.
No description provided by the author