modulepackage
3.0.0+incompatible
Repository: https://github.com/mgr9525/go-cloud.git
Documentation: pkg.go.dev
# README
go-cloud Golang 微服务
新服务
func main() {
/*ymlpath:=""
if len(os.Args)>1 {
ymlpath=os.Args[1]
}*/
gocloud.RunApp("test.yml", constomRoute, customFun)
}
func customFun()[]template.FuncMap {
println("constomFun")
return []template.FuncMap{map[string]interface{}{
"AppName": func() string {
return "GoCloud"
},
"AppVer": func() string {
return "1.0.0"
},
}}
}
func constomRoute() {
gocloud.Web.Any("/", routes.IndexHandler)
}
生成数据表Struct
工具使用:https://github.com/go-xorm/cmd/
xorm reverse mysql root:root@tcp(localhost:3306)/test?charset=utf8 %GOPATH%/src/linskruis/go-cloud/goxorm
# Packages
No description provided by the author
# Functions
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Interfaces
No description provided by the author
# Type aliases
No description provided by the author