AWX SDK for the Go programming language.
If you are using Go 1.5 with the GO15VENDOREXPERIMENT=1 vendoring flag, or 1.6 and higher you can use the following command to retrieve the SDK. The SDK will be included.
go get -u github.com/Colstuwjx/awx-go
We can simply import awx-go and call its services, such as PingService:
import (
"log"
awxGo "github.com/Colstuwjx/awx-go"
)
func main() {
awx := awxGo.NewAWX("http://awx.your_server_host.com", "your_awx_username", "your_awx_passwd", nil)
result, err := awx.PingService.Ping()
if err != nil {
log.Fatalf("Ping awx err: %s", err)
}
log.Println("Ping awx: ", result)
}
More examples can be found at here.
awx-go is still in development, and its roadmap could be found at here.
There are many ways to contribute to awx-go.
- Submit bugs via Github issues;
- Submit a pull request for fixes or features;
- Mail me