mirror of
https://github.com/beego/bee.git
synced 2024-11-29 22:01:28 +00:00
Format code
This commit is contained in:
parent
4a44c8e5db
commit
5b5fed7041
36
hproseapp.go
36
hproseapp.go
@ -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,7 +107,7 @@ 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() {
|
||||||
|
Loading…
Reference in New Issue
Block a user