[#227] netmap: Fix minor blots in documentation/code

Signed-off-by: Leonard Lyubich <leonard@nspcc.ru>
This commit is contained in:
Leonard Lyubich 2022-06-14 17:27:51 +03:00 committed by LeL
parent ca523f1ff1
commit d648b86776
10 changed files with 46 additions and 45 deletions

View file

@ -21,19 +21,19 @@ On client side:
import "github.com/nspcc-dev/neofs-api-go/v2/netmap"
var msg netmap.NodeInfo
msg.WriteToV2(&msg)
info.WriteToV2(&msg)
// send msg
On server side:
// recv msg
var info netmap.NodeInfo
var info NodeInfo
err := info.ReadFromV2(msg)
// ...
// process dec
// process info
Using package types in an application is recommended to potentially work with
different protocol versions with which these types are compatible.