예제 #1
0
파일: main.go 프로젝트: Andals/gobox
func afterAction(context *controller.Context, args []string) {
	context.RespBody = misc.AppendBytes(context.RespBody, []byte("after "+args[0]+"\n"))

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