Thanks to visit codestin.com
Credit goes to github.com

Skip to content

zhufucdev/sdk-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Steve's SDK (Go)

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.

Getting started

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.")
}

About

Steve's API in Golang

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages