1 Star 1 Fork 0

zheng.cui/go-oauth2-server

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
load_data.go 323 Bytes
一键复制 编辑 原始数据 按行查看 历史
husayn arrah 提交于 2017-04-09 06:32 +08:00 . fetch config from etcd via interface
package cmd
import (
"github.com/RichardKnop/go-fixtures"
)
// LoadData loads fixtures
func LoadData(paths []string, configBackend string) error {
cnf, db, err := initConfigDB(true, false, configBackend)
if err != nil {
return err
}
defer db.Close()
return fixtures.LoadFiles(paths, db.DB(), cnf.Database.Type)
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/ongo360/go-oauth2-server.git
git@gitee.com:ongo360/go-oauth2-server.git
ongo360
go-oauth2-server
go-oauth2-server
master

搜索帮助