Skip to content

mgr9525/go-cloud

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Apr 27, 2025
59aa400 · Apr 27, 2025
Apr 25, 2021
Aug 16, 2019
Aug 19, 2019
Apr 23, 2021
May 1, 2024
Apr 22, 2021
May 1, 2024
Apr 22, 2021
Apr 27, 2025
Sep 9, 2023
Apr 15, 2025
Apr 24, 2021
Mar 4, 2025
Mar 4, 2025
Apr 21, 2021
Aug 17, 2021
May 1, 2021
Apr 22, 2021

Repository files navigation

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

About

GoCloud Web 微服务

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages