🔘Pynt for Go

Integrate Pynt with Go to enhance API security testing. Automate security scans within your Go test suites to detect and mitigate vulnerabilities effectively.

What is Go?

💡 Go is a statically typed, compiled programming language designed for simplicity, reliability, and efficiency. Popular for building scalable web services, Go's concurrency features make it ideal for large-scale applications. It’s used extensively in cloud infrastructure, microservices, and API development. With its performance and ease of use, Go is a top choice for backend developers looking to build high-performance APIs and systems.

Golang

Pynt's integration with Go

Pynt’s API security testing suite integrates seamlessly with Go, enabling secure, high-performance development and testing of APIs in Go applications.

If your functional tests are written in Go, you can use Pynt command to run API Security tests from these functional tests.


Quick start

  1. First, make sure Pynt's prerequisites are met.

  2. Follow the instructions to install Pynt container here.

  3. Then, continue with the below example.


Example

test_goat.go is a go based tester for goat (our vulnerable application) that we use to test the functionality of goat, here is how to run it:

  1. Get test_goat.go

curl https://raw.githubusercontent.com/pynt-io/pynt/main/goat_functional_tests/goat_test.go -o goat_test.go
  1. Get testify

go get github.com/stretchr/testify
  1. go mod

go mod init goat_test.go
go mod tidy
  1. Check that functional test works

go test
  1. Run Pynt on functional test

pynt command --cmd "go test"

SSL Support

Automatic Self-signed certificates

Pynt can automatically set your go test to use self signed certificate. use the flag --self-signed

pynt command --cmd "<your test command>" --self-signed

💡 Pynt CLI Troubleshooting: If you're encountering issues with Pynt's CLI, visit the Pynt CLI Troubleshooting Guide for solutions and troubleshooting tips.

💡 Still Need Help? For any questions or troubleshooting, reach out to the Pynt Community Support.

Last updated