Giter Club home page Giter Club logo

gmsec's People

Contributors

dependabot[bot] avatar dylanzan avatar evildao avatar xxjwxc avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

gmsec's Issues

注册路由的代码有问题

拷贝过来运行发现报错,而且给的例子都无法验证。发现代码中group变量没有使用,看了下注册的逻辑,应该是group用于注册ginrpc的路由

func main() {
	// swagger
	myswagger.SetHost("https://localhost:8080")
	myswagger.SetBasePath("gmsec")
	myswagger.SetSchemes(true, false)
	// -----end --
	base := ginrpc.New()
	router := gin.Default()
	group := router.Group("/xxjwxc")
	base.Register(group, new(Hello))                                            // 对象注册 like(go-micro)
	group.POST("/test6", base.HandlerFunc(TestFun6))                            // 函数注册
	base.RegisterHandlerFunc(group, []string{"post", "get"}, "/test", TestFun6) // 多种请求方式注册
	router.Run(":8080")
}

安装遇到问题

大佬,,请问在windows安装遇到这些依赖库问题
..\src\github.com\go-playground\validator\errors.go:9:2: cannot find package "github.com/go-playground/universal-translator" in any of:
E:\CodeTool\Golang\install\src\github.com\go-playground\universal-translator (from $GOROOT)
E:\Learn\Go\src\github.com\go-playground\universal-translator (from $GOPATH)
..\src\github.com\go-playground\validator\baked_in.go:23:2: cannot find package "github.com/leodido/go-urn" in any of:
E:\CodeTool\Golang\install\src\github.com\leodido\go-urn (from $GOROOT)
E:\Learn\Go\src\github.com\leodido\go-urn (from $GOPATH)
..\src\github.com\gmsec\micro\registry\dns_naming_register.go:16:2: cannot find package "github.com/micro/mdns" in any of:
E:\CodeTool\Golang\install\src\github.com\micro\mdns (from $GOROOT)
E:\Learn\Go\src\github.com\micro\mdns (from $GOPATH)
..\src\github.com\gmsec\goplugins\plugin\gin.go:14:2: cannot find package "github.com/soheilhy/cmux" in any of:
E:\CodeTool\Golang\install\src\github.com\soheilhy\cmux (from $GOROOT)
E:\Learn\Go\src\github.com\soheilhy\cmux (from $GOPATH)
remote_project\ShengHuaYiXue\main.go:15:2: cannot find package "gmsec/rpc/gmsec" in any of:
E:\CodeTool\Golang\install\src\gmsec\rpc\gmsec (from $GOROOT)
E:\Learn\Go\src\gmsec\rpc\gmsec (from $GOPATH)
..\src\github.com\go-playground\validator\baked_in.go:20:2: cannot find package "golang.org/x/crypto/sha3" in any of:
E:\CodeTool\Golang\install\src\golang.org\x\crypto\sha3 (from $GOROOT)
E:\Learn\Go\src\golang.org\x\crypto\sha3 (from $GOPATH)

有些依赖库显示的路径无效是怎么回事

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.