Go SDK
Go gRPC client with API shape consistent with the C API.
API Mapping
| C API | Go |
|---|---|
tijet_client_create() | NewTinCore() |
tijet_client_destroy() | client.Close() |
tijet_client_connect(a) | client.Connect(ctx, a) |
tijet_client_disconnect() | client.Disconnect() |
Quickstart
client := tijet.NewTinCore()
defer client.Close()
if err := client.Connect(ctx, ""); err != nil {
log.Fatal(err)
}
client.SetParameter(ctx, "print_speed", "100")
speed, _ := client.GetParameter(ctx, "print_speed")
Note: For the complete Go API reference, see the Chinese documentation.