sdk-go

module
v0.0.1-alpha4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 30, 2025 License: Apache-2.0

README

sdk for go

Getting started

This sdk is only for go in ikaopu.cn.

See examples in tests.

You can contact liyuan@ikaopu.cn if you have any question.

  • Install
go get -u github.com/LeoNumber1/sdk-go@v0.0.1-alpha3
  • then import it in your code
import "github.com/LeoNumber1/sdk-go"
  • use it
kpClient := client.NewClient(client.Config{
    BaseURL:   "http://localhost:3000",
    AccessKey: "YOUR AK",
    SecretKey: "YOUR SK",
}
insClient := api.NewInstanceAPI(kpClient)
insClient.GetInstance("instanceId")

marketClient := api.NewMarketAPI(kpClient)
marketClient.ListMarketCommon()

Try it yourself and enjoy your code!

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL