How vpatel95/go-netconf works
Project type and purpose
• This is a Go-based library (not a full-stack app) that implements a NETCONF client per RFC6241/6242.
• Purpose: provide a programmable API for executing NETCONF RPCs over SSH (with pluggable transports) against network devices.
File structure
• Top-level files: README.md, LICENSE, .gitignore, .travis.yml, go.mod, go.sum.
• examples/: sample programs showing how to use the library (juniper, ssh1, ssh2).
• netconf/: core library code:
• rpc.go, rpc_test.go – defines RPC building blocks and tests.
• session.go – session management, message framing, sequencing.
• transport.go, transport_junos.go, transport_ssh.go – abstract transport interface and concrete implementations.
• transport_*.go + transport_*.go tests – verify transport behaviors.
README for additional insights
• Features list: SSH transport, pluggable RPCs, XML-library independent.
• Examples directory pointed out.
• Intended for Go 1.9+, pre-alpha with evolving API.