Little refactoring

This commit is contained in:
2023-04-01 00:33:59 +02:00
parent 8b3e722ea5
commit b5b293329e
9 changed files with 179 additions and 30 deletions

View File

@@ -23,12 +23,13 @@ func main() {
func exec() error {
var err error
params := api.NewHelloParams()
params.Message = "hello, server!"
params := api.HelloParams{
Message: "hello, server!",
}
result := api.NewHelloResult()
result := api.HelloResult{}
err = dsrpc.Exec("127.0.0.1:8081", api.HelloMethod, params, result, nil)
err = dsrpc.Exec("127.0.0.1:8081", api.HelloMethod, &params, &result, nil)
if err != nil {
return err
}