Gin-demo

command module
v0.0.0-...-9db7971 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2022 License: MIT Imports: 4 Imported by: 0

README

Gin-demo

Golang Web Framework

使用说明

在根目录下创建demo.yml 文件,按照configs/example.yml 的格式填下你的信息方可运行

移植说明

  1. 全局搜索并替换github.com/Super-BUAA-2021/Gin-demo 为你想要的包名。 本例为了符合大多项目对于module的设置,以及方便其他人的使用。将module设置为此。也在使用service包都需要import "github.com/Super-BUAA-2021/Gin-demo/service"
  2. 全局搜索demo,并替换你想要的项目名。包括但不限于:日志文件名,配置文件名
  3. main.go/Swagger注释更改为个人以及项目信息。
  4. 在配置文件中更改为你自己的数据库以及jwt-secret等信息。

相信完成上述四步,运行main便可将此移植为你的项目了

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
api
v1
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
model

Jump to

Keyboard shortcuts

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