package main type Vendor struct { Name string GetURL func(id string) string GetName func(id string, url string) string } type Type int const ( Full Type = 0 Patch Type = 1 ) type Edition struct { Name string Docs []Document } type Document struct { Vendor Vendor Type Type ID string Resellers []Document }