Created
July 28, 2015 14:39
-
-
Save j-griffith/2f32c6c3b5253b247e69 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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