Ubuntu Pastebin

Paste from rog at Wed, 23 Mar 2016 14:30:10 +0000

Download as text
1
2
3
4
5
6
7
8
9
path := "/" + id.String() + "/meta/any"

for i, name := range resourceNames {
	path += "?include=resource/" + name
}
var resourceInfo struct {
	Meta map[string] params.Resource
}
client.Get(path, &resourceInfo)
Download as text