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

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