Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// GitHub repo with author e.g. "MedzikUser/go-utils"
GitHub string
// GitHub Token
GitHubToken string
// Application version e.g. "2.15.43"
Version string
// Binary name in archive e.g. "utils.out"
Binary string
// Check latest version every
CheckEvery time.Duration
/*
After update exec function e.g.
func() {
os.Exit(0)
}
*/
AfterUpdate func()
// Should I update the major? (X.y.z)
Major bool
}
func (*Client) AutoUpdater ¶
func (c *Client) AutoUpdater()
Auto checks for available updates
This function checking latest version from github and automatically update your program
Click to show internal directories.
Click to hide internal directories.