Documentation ¶
Index ¶
Constants ¶
View Source
const ( UNKNOWN = iota ON OFF )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Example ¶
type Example struct { Id int64 `json:"id,omitempty"` Name string `json:"name,omitempty"` Price float64 `json:"price,omitempty"` Status int // the Go language is more poorer than protobuf lang, it doesn't have Enum :( Result []struct { Status bool `json:"status,omitempty"` Msg []byte `json:"msg,omitempty"` Kv map[string]string `json:"kv,omitempty"` } `json:"result,omitempty"` }
This Example struct is as close as possible to a protobuf struct ./examples/protocols/protobuf/Example
Click to show internal directories.
Click to hide internal directories.