From 6e880f8e07d7a4a12fe092ebcc495f8438206285 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Mon, 2 Jan 2017 02:59:32 -0500 Subject: initial commit --- types.go | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 types.go (limited to 'types.go') 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 +} -- cgit v1.2.3