Go Development Environment#
Although every developer's environment is different and is subject to a personal preference, we will provide recommendations for a Go toolchain setup suitable for the development and build of NDK applications.
The toolchain that can be used to develop and build Go-based NDK apps consists of the following components:
- Go programming language - Go compiler, toolchain, and standard library
- Go NDK bindings - generated data access classes for gRPC based NDK service.
- Goreleaser - Go-focused build & release pipeline runner. Packages nFPM to produce rpm packages that can be used to install NDK agents.
It is recommended to use Go modules when developing applications with Go. Go modules allow for better dependency management and can be placed outside the
Here is an example project structure that you can use for the NDK agent development:
NDK language bindings#
With the provided Go bindings, the NDK can be imported in a Go project like that: