Lightlines
By samber

golang-modernize

samber36.6k installs

Bring your Go code up to date, safety first.

What it does

Modernizes Go code with newer language features, standard library APIs, and idiomatic patterns.

When to use it

Use when reviewing outdated Go patterns, encountering deprecation warnings, or requesting modernization, a Go version upgrade, or a tooling refresh.

How to use it

Give it a Go project to modernize; it scans and prioritizes improvements, then applies a full-codebase rewrite in an isolated worktree.

What you provide

  • An existing project

Uses

Good to know

  • starts 5 helper agents

Latest review

What you need · 3

Requires the Go toolchain to run the project's tests and check compatibility with its declared Go version.

Enables the optional modernize-linter scan when available; the modernize linter requires golangci-lint v2.6.0 or newer.


Access · 2

This skill

go.dev

Read

Reads official Go release notes

vuln.go.dev

Read

Checks Go's vulnerability database