A Go Client or SDK that allows you to interact with the Microcks API.
Latest released version is 0.4.0.
Current development version is 0.4.1.
- Documentation
- Microcks Community and community meeting
- Join us on Discord, on GitHub Discussions or CNCF Slack #microcks channel
To get involved with our community, please make sure you are familiar with the project's Code of Conduct.
Latest released version is 0.4.0. Please check the table bealow to see what version of Microcks API it matches.
| Go Client | Microcks Version |
|---|---|
0.4.x |
1.10.0 and above |
0.3.x |
1.10.0 and above |
0.2.0 |
1.10.0 and above |
0.1.0 |
1.8.0 and above |
To get the latest version, use go1.23 and fetch using the go get command. For example:
go get microcks.io/go-client@latest
To get a specific version, use go1.23 and fetch the desired version using the go get command. For example:
go get microcks.io/[email protected]
package main
import (
"context"
"fmt"
"log"
client "microcks.io/go-client"
)
const server = "http://localhost:8080/api"
func main() {
// Create client
c, err := client.NewClientWithResponses(server)
if err != nil {
log.Fatal(err)
}
// Request the Keycloak configuration
ctx := context.Background()
resp, err := c.GetKeycloakConfigWithResponse(ctx)
if err != nil {
log.Fatal(err)
}
// Print the response
fmt.Printf("%+v\n\n", resp.JSON200)
}The Apache License (apache) - see LICENSE.md for more details.