You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
244 B
Go

package wire
type Request struct {
Seq int `json:"seq"`
Type string `json:"type"`
Body interface{} `json:"body"`
}
func NewRequest(seq int, v Value) Request {
return Request{
Seq: seq,
Type: v.NetTag(),
Body: v,
}
}