diff --git a/config/updater.go b/config/updater.go new file mode 100644 index 0000000..16db17d --- /dev/null +++ b/config/updater.go @@ -0,0 +1,16 @@ +package config + +import ( + "github.com/tcnksm/go-latest" +) + +func IsLatestVersion(version string) bool { + githubTag := &latest.GithubTag{ + Owner: "AllanCapistrano", + Repository: "gbc", + } + + res, _ := latest.Check(githubTag, version) + + return !res.Outdated +}