Installation
The SDK requires Go 1.26 or newer (go.mod in the SDK repository pins this
version).
Add the module
go get github.com/Analog-Code-Monitor/Analog-WakaTime-GO-SDK@latest
Then import it:
import analogwakatime "github.com/Analog-Code-Monitor/Analog-WakaTime-GO-SDK"
Run go mod tidy if your editor or build asks for unresolved module graph
updates.
Update
Repeat the same go get …@latest command when a new SDK release is published.
The package already embeds the production API host from OpenAPI.
Proxy
To route traffic through an HTTP proxy:
os.Setenv("HTTP_PROXY", "http://proxy.example:8080")
Continue with authentication.