P4 API for Go documentation

P4 API for Go is an extension to the Go programming language that allows you to run P4 Server commands from within Go scripts, and get the results in a Go-friendly format.

Get started

Learn how to get started using P4 API for Go.

What's new

Learn about new features and enhancements in P4 API for Go 2025.1.

Program with P4 API for Go

How to create a new client workspace and connect to SSL-enables servers.

P4 API for Go structs and interfaces

Learn about P4 API for Go structs, interfaces and their methods

Need more help? Browse all P4 documentation to find what you need.