diff options
author | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-02 02:59:32 -0500 |
---|---|---|
committer | Luke Shumaker <lukeshu@sbcglobal.net> | 2017-01-02 02:59:32 -0500 |
commit | 6e880f8e07d7a4a12fe092ebcc495f8438206285 (patch) | |
tree | e8debcf838410c523ab0d9ba288ef620094ed143 /types.go |
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 +} |