// ExtractGet decorates a GetResult struct returned from a networks.Get() // function with extended attributes. func ExtractGet(r networks.GetResult) (*NetworkExternal, error) { var s struct { Network *NetworkExternal `json:"network"` } err := r.ExtractInto(&s) return s.Network, err }