作者: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"))
}