Golang andals-gobox-http-controller.Context类(方法)实例源码

下面列出了Golang andals-gobox-http-controller.Context 类(方法)源码代码实例,从而了解它的用法。

作者:Andal    项目:gobo   
func afterAction(context *controller.Context, args []string) {
	context.RespBody = misc.AppendBytes(context.RespBody, []byte("after "+args[0]+"\n"))

	context.TransData["after"] = "after"
}

作者:Andal    项目:gobo   
func regexAction(context *controller.Context, args []string) {
	context.RespBody = misc.AppendBytes(context.RespBody, []byte(" regex id = "+args[0]+" "))
}

作者:Andal    项目:gobo   
func beforeAction(context *controller.Context, args []string) {
	context.RespBody = []byte("exact before")
}

作者:Andal    项目:gobo   
func exactAction(context *controller.Context, args []string) {
	context.RespBody = misc.AppendBytes(context.RespBody, []byte(" exact "))
}

作者:Andal    项目:gp   
func afterAction(context *controller.Context, args []string) {
	context.RespBody = misc.AppendBytes(context.RespBody, []byte("after\n"))
}


问题


面经


文章

微信
公众号

扫码关注公众号