writing-modern-go

Community

Adopt modern Go idioms across versions.

Authorfascari
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Use when writing or reviewing Go code to ensure modern idioms are used instead of legacy patterns. Covers Go 1.18 through 1.26 features including slices, maps, cmp, errors.AsType, new(val), and wg.Go.

Core Features & Use Cases

  • Modern idiom modernization guidance across Go versions.
  • Conversions of legacy patterns to modern equivalents (e.g., errors.As to errors.AsType, wg.Add+go to wg.Go).
  • Real-world scenario: migrating code in a large codebase to Go 1.26.

Quick Start

Review the examples and refactor your codebase to use modern Go idioms up to Go 1.26.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: writing-modern-go
Download link: https://github.com/fascari/ai-config/archive/main.zip#writing-modern-go

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.