Documentation
¶
Overview ¶
Package main demonstrates basic go-gnmi API usage.
This example shows:
- Client creation with options
- Get operations with multiple paths
- Set operations (Update, Replace, Delete)
- Body builder for JSON payloads
- Response parsing with gjson
Usage:
export GNMI_TARGET=192.168.1.1:57400 export GNMI_USERNAME=admin export GNMI_PASSWORD=secret go run main.go
Click to show internal directories.
Click to hide internal directories.