func IsNewAvailable() (bool, string, error) {
	ctx := context.Background()
	client := github.NewClient(nil)
	releases, _, err := client.Repositories.ListReleases(ctx, "Girbons", "comics-downloader", nil)

	if err != nil {
		return false, "", err
	}

	// Compare returns an integer comparing two versions
	// according to semantic version precedence.
	result := semver.Compare(Tag, *releases[0].TagName)

	// -1 if v < w
	if result == -1 {
		return true, *releases[0].HTMLURL, err
	}

	return false, "", err
}
// IsNewAvailable() will fetch the latest project releases
// and will compare the latest release Tag against the current Tag.
IsNewAvailable() will fetch the latest project releases
and will compare the latest release Tag against the current Tag.
// IsNewAvailable () will fetch the latest project releases // and will compare the latest release Tag against the current Tag .
func IsNewAvailable() (bool, string, error) {
	ctx := context.Background()
	client := github.NewClient(nil)
	releases, _, err := client.Repositories.ListReleases(ctx, "Girbons", "comics-downloader", nil)
	if err != nil {
		return false, "", err
	}
	result := semver.Compare(Tag, *releases[0].TagName)
	if result == -1 {
		return true, *releases[0].HTMLURL, err
	}
	return false, "", err
}
func IsNewAvailable ( ) ( bool , string , error ) { ctx := context . Background ( ) client := github . NewClient ( nil ) releases , _ , err := client . Repositories . ListReleases ( ctx , " " , " " , nil ) if err != nil { return false , " " , err } result := semver . Compare ( Tag , * releases [ 0 ] . TagName ) if result == - 1 { return true , * releases [ 0 ] . HTMLURL , err } return false , " " , err }
IsNewAvailable() will fetch the latest project releases
and will compare the latest release Tag against the current Tag.
IsNewAvailable () will fetch the latest project releases and will compare the latest release Tag against the current Tag .
// Compare returns an integer comparing two versions // according to semantic version precedence. // -1 if v < w