mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-11-26 19:42:23 +00:00
21 lines
318 B
Go
21 lines
318 B
Go
package rpc
|
|
|
|
import (
|
|
"fmt"
|
|
)
|
|
|
|
type (
|
|
// Param represents a param either passed to
|
|
// the server or to send to a server using
|
|
// the client.
|
|
Param struct {
|
|
StringVal string
|
|
IntVal int
|
|
Type string
|
|
RawValue interface{}
|
|
}
|
|
)
|
|
|
|
func (p Param) String() string {
|
|
return fmt.Sprintf("%v", p.RawValue)
|
|
}
|