A great celebrity once said: It's my go. Here we are, doing go with Steve Reed, providing Gophers the incredible capability to call Steve's API with no library overhead.
Go with me,
go install github.com/zhufucdev/[email protected]Now check for update with UpdateQuery and stuff,
q := sdk.UpdateQuery{
Product: "turret",
Os: sdk.Android,
CurrentVersion: "1.0.0",
}
a, err := sdk.GetReleaseAsset("http://localhost:3000/api", q)
if err != nil {
fmt.Println(err.Error())
} else if a != nil {
fmt.Println(a.VersionName, a.Url)
} else {
fmt.Println("No update found.")
}