
Security News
Feross on TBPN: Socket's Series C and the State of Software Supply Chain Security
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.
github.com/SurajKadam7/buddy
Advanced tools
Buddy is a powerful, thread-safe CLI tool that helps Go developers quickly generate project templates, manage custom files, and streamline development workflow.
# Clone the repository
git clone https://github.com/SurajKadam7/buddy.git
cd buddy
# Build the binary
go build .
# Install globally (optional - requires sudo on Unix systems)
./buddy install
# Check version
./buddy version
# View help
./buddy --help
# Check status
./buddy status
# Create templates
buddy create # Use default strategy
buddy create --simple # Single Go file
buddy create --project # Full Go project structure
buddy create --advanced # Project with tooling (Makefile, etc.)
# Create custom named files
buddy create --name my-algorithm
buddy create --name api-client
# Manage your files
buddy list named # List all named files
buddy open 1 # Open file #1
buddy rename 1 new-name # Rename file #1
buddy delete 2 # Delete file #2
buddy search "TODO" # Search in files
# Configure buddy
buddy set-editor code # Set VS Code as editor
buddy set-path ~/my-projects # Set output directory
buddy set-strategy project # Set default strategy
buddy toggle-auto-open # Toggle auto-open in editor
buddy create - Create template with default strategybuddy create --simple - Single Go file with basic structurebuddy create --project - Go project with cmd/, internal/, pkg/ structurebuddy create --advanced - Full project with Makefile, .gitignore, etc.buddy create --name <filename> - Create custom named filebuddy list named - List all custom named filesbuddy open <number> - Open and activate a named filebuddy delete <number> - Delete a named filebuddy rename <number> <new-name> - Rename a named filebuddy search <term> - Search for files containing a termbuddy status - Show current configuration and statsbuddy config - Display detailed configurationbuddy set-editor <editor> - Set default editor (code, vim, etc.)buddy set-path <path> - Set output directory for generated filesbuddy set-strategy <strategy> - Set default template strategybuddy toggle-auto-open - Toggle auto-open files in editorbuddy install - Install buddy globallybuddy space - Analyze library space consumptionbuddy version - Show version informationbuddy --help - Show help for any commandCreates a single Go file with:
Creates a complete Go project with:
cmd/ directory with main.gointernal/ for private packagespkg/ for public packagesgo.mod fileCreates a professional Go project with:
Buddy stores configuration in ~/.buddy-config.json:
{
"output_path": "/Users/username/buddy-projects",
"default_strategy": "project",
"editor": "code",
"auto_open": true,
"editor_profiles": {
"code": "code",
"vim": "vim",
"nano": "nano"
}
}
codevim, nvimnanoemacsbuddy create --name <n> for rapid prototypingbuddy search to find files by name or content with fuzzy matchingbuddy set-editorbuddy space to track library usageNamed files are perfect for algorithm practice, quick experiments, or code snippets:
# Create algorithm files
buddy create --name binary-search
buddy create --name quick-sort
buddy create --name graph-traversal
# List and work with them
buddy list named
buddy open 2 # Opens quick-sort
buddy search "recursive" # Find files with recursion
# Get file statistics
buddy space # See space usage
The personalize/main.go automatically updates to run your selected file.
# Set up your environment
buddy set-editor code
buddy set-path ~/coding-practice
# Create some files
buddy create --name fibonacci
buddy create --name prime-numbers
buddy create --name binary-tree
# Work on fibonacci
buddy open 1
# Search for specific implementations
buddy search "recursive"
# Rename and organize
buddy rename 1 fibonacci-optimized
buddy delete 2
# Create a full project
buddy create --project
# Monitor usage
buddy space
buddy status
Permission denied during global install:
# Try with sudo (Unix systems)
sudo ./buddy install
# Or install to user directory
mkdir -p ~/.local/bin
cp buddy ~/.local/bin/
export PATH="$HOME/.local/bin:$PATH"
Editor not opening files:
# Check editor availability
which code
which vim
# Reset editor configuration
buddy set-editor code
Files not found:
# Check current configuration
buddy status
buddy config
# Verify file list
buddy list named
Build issues:
# Clean and rebuild
go clean
go mod tidy
go build .
buddy <command> --helpbuddy --helpbuddy statusbuddy config# Run all tests
go test ./...
# Run with coverage
go test -cover ./...
# Run with race detection
go test -race ./...
# Run benchmarks
go test -bench=. ./...
git clone https://github.com/SurajKadam7/buddy.git
cd buddy
go mod tidy
go build .
We welcome contributions! Here's how to get started:
git checkout -b feature/amazing-featurego test ./...go test -cover ./...go test -race ./...git commit -m 'Add amazing feature'git push origin feature/amazing-featureThis project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ for Go developers
"Streamline your Go development workflow with Buddy!"
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Feross Aboukhadijeh joins TBPN to discuss Socket's $60M Series C, 500%+ ARR growth, AI's impact on open source, and the rise in supply chain attacks.

Security News
OSV withdrew 157 OSV malware reports after automated false positives incorrectly flagged trusted npm and PyPI packages, sending bad records into tools that rely on OSV data.

Research
/Security News
TrapDoor crypto stealer hits 36 malicious packages across npm, PyPI, and Crates.io, targeting crypto, DeFi, AI, and security developers.