Skip to content

Commit

Permalink
docs: godoc
Browse files Browse the repository at this point in the history
Signed-off-by: Carlos A Becker <[email protected]>
  • Loading branch information
caarlos0 committed Apr 7, 2022
1 parent 35702ca commit 7e2d64b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,15 @@ 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"`
Purchase Purchase `json:"purchase"`
Message string `json:"message"`
}

// Purchase is Purchase from the GumRoad API
type Purchase struct {
Email string `json:"email"`
Refunded bool `json:"refunded"`
Expand Down

0 comments on commit 7e2d64b

Please sign in to comment.