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

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