From 5b5fed7041313d5f7e65316f59f5ea6970680b58 Mon Sep 17 00:00:00 2001 From: Laoliu Date: Tue, 1 Nov 2016 16:27:44 +0800 Subject: [PATCH] Format code --- hproseapp.go | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/hproseapp.go b/hproseapp.go index 882e6d0..82d3dad 100644 --- a/hproseapp.go +++ b/hproseapp.go @@ -64,7 +64,7 @@ var hproseMaingo = `package main import ( "fmt" - "reflect" + "reflect" "{{.Appname}}/models" "github.com/hprose/hprose-golang/rpc" @@ -73,14 +73,14 @@ import ( ) func logInvokeHandler( - name string, - args []reflect.Value, - context rpc.Context, - next rpc.NextInvokeHandler) (results []reflect.Value, err error) { - fmt.Printf("%s(%v) = ", name, args) - results, err = next(name, args, context) - fmt.Printf("%v %v\r\n", results, err) - return + name string, + args []reflect.Value, + context rpc.Context, + next rpc.NextInvokeHandler) (results []reflect.Value, err error) { + fmt.Printf("%s(%v) = ", name, args) + results, err = next(name, args, context) + fmt.Printf("%v %v\r\n", results, err) + return } func main() { @@ -107,8 +107,8 @@ var hproseMainconngo = `package main import ( "fmt" - "reflect" - + "reflect" + "{{.Appname}}/models" "github.com/hprose/hprose-golang/rpc" @@ -122,14 +122,14 @@ func init() { } func logInvokeHandler( - name string, - args []reflect.Value, - context rpc.Context, - next rpc.NextInvokeHandler) (results []reflect.Value, err error) { - fmt.Printf("%s(%v) = ", name, args) - results, err = next(name, args, context) - fmt.Printf("%v %v\r\n", results, err) - return + name string, + args []reflect.Value, + context rpc.Context, + next rpc.NextInvokeHandler) (results []reflect.Value, err error) { + fmt.Printf("%s(%v) = ", name, args) + results, err = next(name, args, context) + fmt.Printf("%v %v\r\n", results, err) + return } func main() {