https://github.com/julienbreux/microcks-client-go
🔌 Microcks GO client
https://github.com/julienbreux/microcks-client-go
Last synced: 3 months ago
JSON representation
🔌 Microcks GO client
- Host: GitHub
- URL: https://github.com/julienbreux/microcks-client-go
- Owner: JulienBreux
- License: apache-2.0
- Created: 2023-08-29T09:16:17.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-29T09:49:22.000Z (almost 2 years ago)
- Last Synced: 2024-10-12T00:21:07.980Z (9 months ago)
- Language: Makefile
- Homepage:
- Size: 42 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
## 🔌 Microcks GO client
[](http://godoc.org/github.com/JulienBreux/microcks-client-go)
[](Tag)
[](https://golang.org/dl/#stable)
[](https://github.com/JulienBreux/microcks-client-go/blob/main/LICENSE)
[](https://github.com/JulienBreux/microcks-client-go/releases)---
### How to get it
To get the latest version, use go1.21+ and fetch using the `go get` command. For example:
```
go get github.com/JulienBreux/microcks-client-go@latest
```To get a specific version, use go1.21+ and fetch the desired version using the `go get` command. For example:
```
go get github.com/JulienBreux/[email protected]
```### How to use it
```go
package mainimport (
"github.com/JulienBreux/microcks-client-go"
)const server = "http://localhost:8080/api"
fun main() {
// Create client
client, err := api.NewClientWithResponses(server)
if err != nil {
fatal(err)
}// Request the Keycloak configuration
ctx := context.Background()
resp, err := c.actions.GetKeycloakConfigWithResponse(ctx)
if err != nil {
fatal(err)
}// Print the response
fmt.Printf("%+v\n\n", resp.JSON200)
}
```### License
The MIT License (MIT) - see [`LICENSE.md`](https://github.com/JulienBreux/microcks-client-go/blob/main/LICENSE.md) for more details