Skip to content

vim: Go snippets, filetype templates, and dynamic copyright year#53

Merged
conallob merged 2 commits into
mainfrom
claude/trusting-mendel-qszu6n
Jun 11, 2026
Merged

vim: Go snippets, filetype templates, and dynamic copyright year#53
conallob merged 2 commits into
mainfrom
claude/trusting-mendel-qszu6n

Conversation

@conallob

Copy link
Copy Markdown
Owner

Summary

  • Adds Stripe/HTTP client UltiSnips snippets to go.snippets (htclient, sclient, serr, jdec, smain, idem)
  • Adds go.tpl filetype template so new .go files open pre-populated with package main, a fmt import, and a main() stub
  • Converts all three vim filetype templates (go.tpl, py.tpl, sh.tpl) to chezmoi templates so the copyright year is rendered dynamically at chezmoi apply time

Generated by Claude Code

claude added 2 commits June 11, 2026 11:30
New .go files now open pre-populated with package main, a fmt import,
and a main() stub via the existing BufNewFile template mechanism.

https://claude.ai/code/session_0175T5PwVBu493YWDc2jsLhY
Renames go.tpl, py.tpl, sh.tpl to .tmpl so chezmoi renders them at
apply time. Replaces the hardcoded copyright year with
{{ now | date "2006" }} so the deployed templates always carry the
current year.

https://claude.ai/code/session_0175T5PwVBu493YWDc2jsLhY
@conallob conallob merged commit bb7349c into main Jun 11, 2026
12 checks passed
@conallob conallob deleted the claude/trusting-mendel-qszu6n branch June 11, 2026 11:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants