LogoClawIndex
CasesSkillsAbout
LogoClawIndex

ClawIndex

OpenClaw Skills & Use Case Index

ClawIndex is an ecosystem-driven index of OpenClaw skills and real-world use cases.

Index

Skills·
Cases

Meta

About·
Disclaimer·
Email·
GitHub
© 2026 ClawIndex All Rights Reserved.

modern-go - Modernize Go code with version-aware idioms

Modernizes Go source files with version-appropriate idioms, APIs, and language features based on the project's go.mod version.

Tags

Updated: 2026-11-06

Capabilities

Typical Inputs

Typical Outputs

What this skill does

  • Detect Go version
  • Find scoped Go files
  • Apply version-gated transformations
  • Exclude specified directories
  • Print change summary

Inputs

  • Go project
  • go.mod file
  • Target file or directory

Outputs

  • Modified Go source files
  • Change summary
  • Skipped transformation summary

Requirements

  • Go project with go.mod
  • Go version directive in go.mod

Source

  • Spec: SKILL.md
Go
code modernization
source transformation
idiomatic code
gofix
Detect Go version
Find scoped Go files
Apply version-gated transformations
Exclude specified directories
Go project
go.mod file
Target file or directory
Modified Go source files
Change summary
Skipped transformation summary