Example #1
0
File: main.go Project: Andals/gobox
func afterAction(context *controller.Context, args []string) {
	context.RespBody = misc.AppendBytes(context.RespBody, []byte("after "+args[0]+"\n"))

	context.TransData["after"] = "after"
}
Example #2
0
File: main.go Project: Andals/gobox
func regexAction(context *controller.Context, args []string) {
	context.RespBody = misc.AppendBytes(context.RespBody, []byte(" regex id = "+args[0]+" "))
}
Example #3
0
File: main.go Project: Andals/gobox
func beforeAction(context *controller.Context, args []string) {
	context.RespBody = []byte("exact before")
}
Example #4
0
File: main.go Project: Andals/gobox
func exactAction(context *controller.Context, args []string) {
	context.RespBody = misc.AppendBytes(context.RespBody, []byte(" exact "))
}
Example #5
0
File: main.go Project: Andals/gpm
func afterAction(context *controller.Context, args []string) {
	context.RespBody = misc.AppendBytes(context.RespBody, []byte("after\n"))
}