Go Types

Go type system advisor. Always use this skill when designing Go interfaces, working with structs and embedding, using generics, performing type assertions or type switches, defining custom error types, choosing between named types and aliases, or thinking about zero values. Use when the user says "how do I type this in Go", "when should I use an interface", "should I embed or compose", "how do I write a generic function", "how do I assert a type", "how do I wrap an error", "named type vs type alias", or "is my interface too big". Read this skill before answering any Go type system question.

AllThingsSmitty Updated

File contents

AllThingsSmitty/agent-skills/tree/main/skills/go-types commit 40e216918a

Frequently asked questions

npx skillmds@latest add allthingssmitty/go-types