Helix Core is now P4. Product user interfaces will be updated soon. Learn more >>

P4 API for Go Documentation | 2025.1

# P4 API for Go overview

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.

The main features are:

- Get P4 Server data and forms in hashes and arrays.
- Edit P4 Server forms by modifying hashes.
- Exception based error handling.
- Controllable handling of warnings such as "File(s) up-to-date." on a sync.
- Run as many commands on a connection as required.
- The output of a command is returned as a Go array. For non-tagged output, the elements of the array are strings. For tagged output, the elements of the array are Go hashes.
- Thread-safe and thread-friendly; you can have multiple instances of the `P4` class running in different threads.

Your search for returned results