예제 #1
0
파일: updater.go 프로젝트: jingweno/gh
func (updater *Updater) latestReleaseNameAndVersion() (name, version string) {
	// Create Client with a stub Credentials
	c := github.Client{Credentials: &github.Credentials{Host: updater.Host}}
	name, _ = c.GhLatestTagName()
	version = strings.TrimPrefix(name, "v")

	return
}