go-upgrade

Upgrade Go via Homebrew and update go.mod files with go mod tidy.

1|Updated Oct 17, 2024
One-click install
npx skills add https://github.com/cassamajor/xcnf --skill go-upgrade
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: go-upgrade
Source: https://github.com/cassamajor/xcnf/tree/main/.claude/skills/go-upgrade
Command: npx skills add https://github.com/cassamajor/xcnf --skill go-upgrade

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the process of upgrading the Go programming language to its latest version and ensures that all relevant project files are updated to reflect this change.

Core Features & Use Cases

  • Go Version Upgrade: Updates Go to the latest stable release using Homebrew.
  • Dependency Management: Updates go.mod files in specified example projects and runs go mod tidy to manage dependencies.
  • Use Case: When a new Go version is released, use this Skill to quickly update your development environment and ensure your example projects are compatible with the latest Go features and tooling.

Quick Start

Upgrade Go to the latest version and update all example go.mod files.

Frequently Asked Questions about go-upgrade

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

FAQPage Schema
How do I upgrade Go to the latest version and update my project dependencies?

To upgrade Go and update dependencies, this Skill uses Homebrew to install the latest Go release and then modifies the go directive in go.mod files before running go mod tidy to synchronize project dependencies.

Does this Skill update go.mod files automatically when upgrading Golang?

Yes, upgrading Golang triggers an automatic update of go.mod files. The Skill detects the newly installed Go version, modifies the go directive in your project files, and executes go mod tidy to ensure dependencies match.

Can I use this to update multiple Go projects with a single command?

You can update multiple example projects by running this Skill. It locates all go.mod files within the examples/ directory, applies the new Golang version to each one, and runs go mod tidy to manage dependencies across the projects.

Do I need Homebrew to upgrade my Golang environment with this tool?

Yes, Homebrew is required to upgrade your Golang environment. The Skill specifically relies on Homebrew to fetch and install the latest Go programming language release before updating your project files.

What is the best way to keep my Go projects compatible with a new Golang release?

The best way to keep projects compatible with a new Golang release is to update the go directive in go.mod files and run go mod tidy. This Skill automates that entire process, from Homebrew installation to dependency synchronization.