Installation Guide
This page provides detailed instructions on how to install and configure CVE Utils in different environments.
System Requirements
- Go 1.18 or higher
- Supported operating systems: Linux, macOS, Windows
Installation Methods
Method 1: Using go get (Recommended)
This is the simplest and recommended installation method:
bash
go get github.com/scagogogo/cve
Method 2: Using go mod
If you are using Go modules in your project:
- Initialize your module (if not already done):
bash
go mod init your-project-name
- Add CVE Utils as a dependency:
bash
go get github.com/scagogogo/cve
- Import in your Go code:
go
import "github.com/scagogogo/cve"
Verification
After installation, verify that CVE Utils is working correctly:
go
package main
import (
"fmt"
"github.com/scagogogo/cve"
)
func main() {
// Test basic functionality
result := cve.Format("cve-2022-12345")
if result == "CVE-2022-12345" {
fmt.Println("✅ CVE Utils installed successfully!")
} else {
fmt.Println("❌ Installation failed")
}
}
Troubleshooting
Common Issues
- Go version too old: Ensure you are using Go 1.18 or higher
- Module not found: Make sure you have internet access and can reach GitHub
- Import errors: Verify the import path is correct:
github.com/scagogogo/cve
Getting Help
If you encounter issues:
- Check the GitHub Issues
- Review the documentation
- Create a new issue if needed
Next Steps
- Continue to Getting Started
- Read the Basic Usage Guide
- Explore the API Reference