Skip to content

Instantly share code, notes, and snippets.

@BlackMetalz
Created February 8, 2025 03:44
Show Gist options
  • Save BlackMetalz/08ec9f3e985c7796f65ae36b06004f35 to your computer and use it in GitHub Desktop.
Save BlackMetalz/08ec9f3e985c7796f65ae36b06004f35 to your computer and use it in GitHub Desktop.
Sample code contains secret.
package main
import (
"fmt"
"log"
)
const (
// AWS credentials
AWS_ACCESS_KEY = "AKIA4XXXXXXXXXXXXXXXXX"
AWS_SECRET_KEY = "kG1234abcd5678efgh90ijklmnop12345678ABCD"
// Database credentials
DB_PASSWORD = "sup3r_s3cr3t_p@ssw0rd"
DB_CONNECTION = "postgresql://admin:password123@localhost:5432/mydb"
// API keys
STRIPE_SECRET_KEY = "sk_test_51ABCDEfghiJKLMNOpqrsTUVW"
GITHUB_TOKEN = "ghp_ABC123DEF456GHI789JKLmnopqrstuvwxyz"
)
func main() {
fmt.Println("Application starting...")
log.Printf("Connected to database with credentials: %s", DB_CONNECTION)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment