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

P4 API for Go Documentation | 2025.1

# Disconnect from P4 Server

The following is an example of how to disconnect from the P4 Server using P4 API for Go.

Copy

    1
    2
    3
    4
    5
    6
    7
    disconnected, err := p4api.Disconnect()
    if err != nil {
        fmt.Println("Error disconnecting from server:", err)
    }
    if disconnected {
        fmt.Println("Disconnected from P4 server.")
    }

Your search for returned results