Safelyx Go SDK is now available in GitHub
Safelyx Go SDK is now available in GitHub. You can now install Safelyx in your Go project using go get or go install.
Published on February 21, 2025
We're excited to announce the release of our Go SDK for automated content moderation! The safelyx-go
package is now available on GitHub, making it easier than ever to integrate Safelyx's powerful platform moderation tools into your Go projects. You can find its source code on GitHub (it's Open Source!).
Simplicity for Go Developers
At Safelyx, we believe in making content moderation simple and accessible. After the success of our JavaScript and Python SDKs, we're now bringing the same powerful capabilities to Go developers. Our Go SDK works seamlessly for versions >= 1.23:
Quick Start with go install
Getting started with our automated content moderation SDK is as simple as running:
go install github.com/safelyx/safelyx-go@v0.1.0
Then in your code:
import (
"log"
"fmt"
"github.com/safelyx/safelyx-go"
)
func checkLinkSafety() {
api := safelyx.NewClient("your-key-code")
checkResult, err := api.CheckLink("https://example.com")
if err != nil {
log.Fatal(err)
}
switch {
case checkResult.Result >= 8:
fmt.Println("Link is safe!")
case checkResult.Result >= 4:
fmt.Println("Link needs review")
case checkResult.Result >= 0:
fmt.Println("Link is unsafe!")
}
}
Comprehensive Platform Moderation Features
Our Go SDK provides access to all of Safelyx's content moderation endpoints:
- Link Safety Verification: Protect users from malicious URLs and phishing attempts
- Message Content Analysis: Detect inappropriate content, sentiment, and potential threats
- Email Legitimacy Validation: Verify email addresses and prevent abuse
- Image Safety Analysis: Ensure uploaded images meet your platform's standards
Real-world Implementation Examples
Looking at our documentation and use cases, you can see how the SDK helps with various content moderation scenarios:
- Platform content moderation
- User-generated content protection
- Community safety enforcement
- Real-time threat detection
Simple Integration, Powerful Results
The SDK returns detailed analysis results while maintaining a simple API interface. Each check returns a comprehensive result object that includes:
- Safety score (0-10)
- Detailed analysis
- Content sentiment
- Threat assessment
- Recommended actions
Getting Started
- Install the package using
go install
orgo get
- Buy a key code
- Start protecting your platform with just a few lines of code
Our SDK is designed to grow with your platform, offering:
- Detailed safety analysis
- Real-time threat detection
- Comprehensive reporting
- Flexible integration options
- Cross-platform compatibility
Try It Today
Ready to enhance your platform's content moderation? Get started with our SDK today:
- GitHub: safelyx-go
- Documentation: Safe API Documentation
Join the growing number of platforms using Safelyx for automated content moderation. Our SDK makes it easier than ever to protect your users while maintaining a positive user experience.
Questions or need help? Contact our support team at help@safelyx.com.