diff options
Diffstat (limited to 'types.go')
-rw-r--r-- | types.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/types.go b/types.go new file mode 100644 index 0000000..9bb4c2d --- /dev/null +++ b/types.go @@ -0,0 +1,26 @@ +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 +} |