# README
Synqly Go SDK
This repository contains Go packages for integrating with Synqly APIs. All Synqly SDKs require a valid Synqly Organization token to use.
If you aren't yet a Synqly customer, please feel free to Schedule a Demo.
The examples
directory of this repository contains example implementations that demonstrate how to incorporate Synqly SDKs into a Go application.
Troubleshooting
Test Synqly/go-sdk Module Import
The following steps can be used to troubleshoot importability of this repository.
The following example uses a minimal sample application to test package importability.
First, create a sample application directory:
mkdir ~/sample-synqly-app
cd ~/sample-synqly-app
Next, create a new go program using go mod
:
go mod init synqly-go
Create a main.go
file to print one of Synqly's OCSF Event Enum values.
cat << EOF > main.go
package main
import (
"fmt"
engine "github.com/synqly/go-sdk/client/engine"
)
func main() {
exampleStatus := engine.NotificationStatusOpen
fmt.Printf("Example Synqly OCSF Notification status: %v\n", exampleStatus)
}
EOF
Test that go mod
can import github.com/synqly/go-sdk
. If this step succeeds without error, then the import was successful.
go mod tidy
As a final check, run the main.go
program to test the module is behaving as expected.
go run main.go
# Go run output
Example Synqly OCSF Notification status: OPEN