go-server-template

module
v0.0.0-...-4d27eac Latest Latest
Warning

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

Go to latest
Published: May 8, 2024 License: MIT

README

Introduction

An easy to use, easy to maintenance template.

This template layout reference: https://go.dev/doc/modules/layout

Use

// install
go install golang.org/x/tools/cmd/gonew@latest

gonew github.com/liushuangls/go-server-template your.domain/myprog

// run
cd myprog

cp configs/example.yaml configs/local.yaml

make install

make generate

make run

Features

  • wire - injects dependencies
  • ent - database orm
  • gin - router
  • viper - config manager
  • and so on...
    • jwt
    • ...

Jump to

Keyboard shortcuts

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