Program with P4 API for Go
The P4 API for Go interface closely resembles P4 API for Python and P4 API for Ruby, however the syntax has been specifically configured for Go.
The following pages provide examples of common P4 Server operations implemented in P4 API for Go.
The following examples assume the various environment variables are correctly set and that you are logged in.