Giter Site home page Giter Site logo

singo's Issues

I have meet some problem, i resolve it.

when i use browser plug-in the origin is like chrome-extension://ieoejemkppmjcdfbnfphhpbfmallhfnc/
is like must use app to send the post request. place 我尝试用英语编写问题

考虑增加一些debug log吗

现在调试起来有点累,手动加入了request和response log之后大幅优化使用体验。考虑包含更多的debug log吗

缺少dockerfile

该脚手架项目是否可以提供dockerfile,如果需要我可以提供PR

go get gihtub.com/bydmm/singo报错

错误如下

package singo/conf: unrecognized import path "singo/conf" (import path does not begin with hostname)

错误应该是man.go中导入模块未指定hostname

返回403

请问下post请求的时候,403会是什么原因尼?谢谢
image

go run main.go 报错,似乎是redis驱动版本太旧

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的代码应该怎么写比较好呢,项目里面并没有相关的说明,只有简单的单个数据库连接并不十分实用。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.