go-bootstrap

Initialize Go projects with go.mod, directory structure, and linting configuration.

Updated May 2, 2020
One-click install
npx skills add https://github.com/vankichi/dotfiles --skill go-bootstrap
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-bootstrap
Source: https://github.com/vankichi/dotfiles/tree/main/claude/ja/skills/go-bootstrap
Command: npx skills add https://github.com/vankichi/dotfiles --skill go-bootstrap

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This skill automates the initialization of a new Go project with essential files and tools, streamlining the setup process and enabling efficient development.

Core Features & Use Cases

  • Module Initialization: Automates the creation of a go.mod file for module management.
  • Directory Structure: Sets up a clean directory structure following best practices.
  • Linting: Integrates .golangci.yaml for code linting and formatting.
  • Build and Test Commands: Generates a Makefile with basic build, test, and lint commands.
  • Gitignore: Adds necessary rules to .gitignore for version control.
  • Use Case: Ideal for quickly starting a new Go project and ensuring it adheres to coding standards from the outset.

Quick Start

Initialize a new Go project with go-bootstrap.

Frequently Asked Questions about go-bootstrap

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I initialize a Go project with linting and a Makefile?

To initialize a Go project with linting and a Makefile, use this skill to automatically generate the go.mod file, directory structure, .golangci.yaml, and build commands. This ensures your project adheres to coding standards from the outset.

What is the best way to set up a Go project structure following Clean Architecture?

The best way to set up a Go project following Clean Architecture is to automate the creation of a clean directory structure and essential files. This approach provides a consistent foundation aligned with DDD and Clean Architecture principles for efficient development.

Do I need Go 1.22 to use an automated Go project setup tool?

Yes, you need Go 1.22 or a later version to use this automated Go project setup tool. The skill requires this specific version to properly initialize the module and configure the project environment.

Can I integrate golangci-lint when starting a new Go project?

Yes, you can integrate golangci-lint when starting a new Go project. The setup process includes generating a .golangci.yaml file for code linting and formatting, ensuring your codebase maintains quality standards immediately.

How do I generate a Makefile for build and test commands in a new Go project?

You can generate a Makefile for build and test commands by initializing your Go project with an automated setup skill. It creates a Makefile containing basic build, test, and lint commands to streamline your workflow.