1
0
mirror of https://github.com/beego/bee.git synced 2024-11-26 06:21:34 +00:00

Format code

This commit is contained in:
Laoliu 2016-11-01 16:27:44 +08:00
parent 4a44c8e5db
commit 5b5fed7041

View File

@ -64,7 +64,7 @@ var hproseMaingo = `package main
import ( import (
"fmt" "fmt"
"reflect" "reflect"
"{{.Appname}}/models" "{{.Appname}}/models"
"github.com/hprose/hprose-golang/rpc" "github.com/hprose/hprose-golang/rpc"
@ -73,14 +73,14 @@ import (
) )
func logInvokeHandler( func logInvokeHandler(
name string, name string,
args []reflect.Value, args []reflect.Value,
context rpc.Context, context rpc.Context,
next rpc.NextInvokeHandler) (results []reflect.Value, err error) { next rpc.NextInvokeHandler) (results []reflect.Value, err error) {
fmt.Printf("%s(%v) = ", name, args) fmt.Printf("%s(%v) = ", name, args)
results, err = next(name, args, context) results, err = next(name, args, context)
fmt.Printf("%v %v\r\n", results, err) fmt.Printf("%v %v\r\n", results, err)
return return
} }
func main() { func main() {
@ -107,8 +107,8 @@ var hproseMainconngo = `package main
import ( import (
"fmt" "fmt"
"reflect" "reflect"
"{{.Appname}}/models" "{{.Appname}}/models"
"github.com/hprose/hprose-golang/rpc" "github.com/hprose/hprose-golang/rpc"
@ -122,14 +122,14 @@ func init() {
} }
func logInvokeHandler( func logInvokeHandler(
name string, name string,
args []reflect.Value, args []reflect.Value,
context rpc.Context, context rpc.Context,
next rpc.NextInvokeHandler) (results []reflect.Value, err error) { next rpc.NextInvokeHandler) (results []reflect.Value, err error) {
fmt.Printf("%s(%v) = ", name, args) fmt.Printf("%s(%v) = ", name, args)
results, err = next(name, args, context) results, err = next(name, args, context)
fmt.Printf("%v %v\r\n", results, err) fmt.Printf("%v %v\r\n", results, err)
return return
} }
func main() { func main() {