Documentation ¶ Index ¶ type Client func NewClient(opts ...Option) *Client func (c *Client) GetLatestRelease(ctx context.Context, owner, repo string) (*Release, error) type Option func WithBaseURL(url string) Option func WithHTTPClient(c *http.Client) Option type Release Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Client ¶ type Client struct { // contains filtered or unexported fields } func NewClient ¶ func NewClient(opts ...Option) *Client func (*Client) GetLatestRelease ¶ func (c *Client) GetLatestRelease(ctx context.Context, owner, repo string) (*Release, error) type Option ¶ type Option func(*Client) func WithBaseURL ¶ func WithBaseURL(url string) Option func WithHTTPClient ¶ func WithHTTPClient(c *http.Client) Option type Release ¶ type Release struct { TagName string `json:"tag_name"` HTMLURL string `json:"html_url"` } Source Files ¶ View all Source files client.go Click to show internal directories. Click to hide internal directories.