From 7e2d64ba9dd6634bd771ddaab0b5c1e30b3841ba Mon Sep 17 00:00:00 2001 From: Carlos A Becker Date: Wed, 6 Apr 2022 22:25:40 -0300 Subject: [PATCH] docs: godoc Signed-off-by: Carlos A Becker --- main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main.go b/main.go index e8857ce..b4929f0 100644 --- a/main.go +++ b/main.go @@ -86,6 +86,7 @@ func doCheck(api, product, key string) error { return nil } +// GumroadResponse is an API response. type GumroadResponse struct { Success bool `json:"success"` Uses int `json:"uses"` @@ -93,6 +94,7 @@ type GumroadResponse struct { Message string `json:"message"` } +// Purchase is Purchase from the GumRoad API type Purchase struct { Email string `json:"email"` Refunded bool `json:"refunded"`