The Wayback Machine - https://web.archive.org/web/20201019165053/https://github.com/topics/gin
Skip to content
#

Gin

gin logo

Gin is a HTTP web framework written in Go (Golang). It features a Martini-like API with much better performance -- up to 40 times faster. If you need smashing performance, get yourself some Gin.

Here are 916 public repositories matching this topic...

piexlmax
piexlmax commented Sep 7, 2020

在go项目的main.go下 27行

	if global.GVA_CONFIG.System.NeedInitData {
		init_data.InitData() // 通过配置文件初始化数据 默认为 false 首次运行需要将 ./config.yaml中 system下的 need-init-data 修改为true
	}

此处修改为根据配置文件来决定是否开启初始化
在跟目录的config.yaml中的system下存在一行
need-init-data: false
将此参数设定为true则会执行初始化代码
切记初次开启后 计得关闭

Created by Manu MA, Javier Provecho Fernandez

Released June 30, 2014

Latest release 6 months ago

Repository
gin-gonic/gin
Website
gin-gonic.com

Related Topics

framework go router
You can’t perform that action at this time.