gourouting / singo Goto Github PK
View Code? Open in Web Editor NEWGin+Gorm开发Golang API快速开发脚手架
License: MIT License
Gin+Gorm开发Golang API快速开发脚手架
License: MIT License
gorm 和 redis 在进程销毁的时候没有主动去和远端server断开连接,,是有什么原因有意而为之的吗😄
这个问题非常玄学
when i use browser plug-in the origin is like chrome-extension://ieoejemkppmjcdfbnfphhpbfmallhfnc/
is like must use app to send the post request. place 我尝试用英语编写问题
现在调试起来有点累,手动加入了request和response log之后大幅优化使用体验。考虑包含更多的debug log吗
该脚手架项目是否可以提供dockerfile,如果需要我可以提供PR
git仓库没有sql文件 麻烦提供一下 谢谢
| 403 | 0s | ::1 | POST /api/v1/user/register
错误如下
package singo/conf: unrecognized import path "singo/conf" (import path does not begin with hostname)
错误应该是man.go中导入模块未指定hostname
目前是使用cookie方式吧?
这个名字听起来会孤独一辈子啊
后续会支持jwt吗
不然会报错cannot load malformed module path这个错误
go run main.go
go: github.com/go-redis/[email protected]+incompatible: reading https://goproxy.io/github.com/go-redis/redis/@v/v6.15.3+incompatible.mod: 410 Gone
似乎是redis驱动版本太旧的原因
删除go.mod
后,重新构建依赖
rm go.mod
go mod init singo
go mod tidy
新的依赖包版本是这样的:
module singo
go 1.13
require (
github.com/gin-contrib/cors v1.3.0
github.com/gin-contrib/sessions v0.0.1
github.com/gin-gonic/gin v1.4.0
github.com/go-redis/redis v6.15.6+incompatible
github.com/jinzhu/gorm v1.9.11
github.com/joho/godotenv v1.3.0
golang.org/x/crypto v0.0.0-20191122220453-ac88ee75c92c
gopkg.in/go-playground/validator.v8 v8.18.2
gopkg.in/yaml.v2 v2.2.7
)
例如:两个数据库地址127.0.0.1:3006|127.0.0.1:3007,这两个数据库地址分别都有两个database: user、customer;config、other等四个database。我现在需要在同一个项目访问四个数据库里面的表。我连接mysql的代码应该怎么写比较好呢,项目里面并没有相关的说明,只有简单的单个数据库连接并不十分实用。
结构体定义太多,每个操作其实定义一个model就够了,其他的需求用tag来丰富就好 @ @bydmm
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.