Skip to content

Instantly share code, notes, and snippets.

@j-griffith
Created July 28, 2015 14:39
Show Gist options
  • Save j-griffith/2f32c6c3b5253b247e69 to your computer and use it in GitHub Desktop.
Save j-griffith/2f32c6c3b5253b247e69 to your computer and use it in GitHub Desktop.
type Params struct {
AccountID int `json:"accountID"`
Name string `json:"name"`
TotalSize int `json:"totalSize"`
}
type OtherParams struct {
GroupID int `json:"groupID"`
GroupName string `json:"groupName"
}
type Request struct {
Method string `json:"method"`
Id int `json:"id"`
Params Params `json:"params"` // Would like to use Params|OtherParams|... ; can I use an interface?
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment