Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/liushuangls/go-server-template

golang web server template
https://github.com/liushuangls/go-server-template

gin golang http-server

Last synced: about 1 month ago
JSON representation

golang web server template

Awesome Lists containing this project

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
- ...