---
title: "Go Hooks"
description: "> This file extends [common/hooks.md](../common/hooks.md) with Go specific content."
type: skill
canonical_url: https://claudary.paisolsolutions.com/skills/hooks-25
source: "Claudary"
difficulty: intermediate
author: "Claude Code Knowledge Pack"
date: 2026-07-10T11:25:13.385Z
license: CC-BY-4.0
attribution: "Go Hooks — Claudary (https://claudary.paisolsolutions.com/skills/hooks-25)"
---

# Go Hooks
> This file extends [common/hooks.md](../common/hooks.md) with Go specific content.

## Overview

---
paths:
  - "**/*.go"
  - "**/go.mod"
  - "**/go.sum"
---
# Go Hooks

> This file extends [common/hooks.md](../common/hooks.md) with Go specific content.

## PostToolUse Hooks

Configure in `~/.claude/settings.json`:

- **gofmt/goimports**: Auto-format `.go` files after edit
- **go vet**: Run static analysis after editing `.go` files
- **staticcheck**: Run extended static checks on modified packages

---

Source: [Claudary](https://claudary.paisolsolutions.com/skills/hooks-25) · https://claudary.paisolsolutions.com
