Hacker GitHub

← All repos

GaijinEntertainment/go-exhaustruct

View on GitHub ↗ ★ 213 Go

golang analyzer that finds structures with uninitialized fields

3 mentions on Hacker News by 3 people: 0 stories, 3 comments · first 2024-02-10 · latest 2026-02-10

Mentions per year 3 mentions · busiest year 2024 (2)
20082026
  1. …What I find is people using linters to ensure all struct fields are initialized explicitly (e.g. https://github.com/GaijinEntertainment/go-exhaustruct ), which is uhh...
    comment by r4victor · 2026-02-10 · in Parse, Don't Validate (2019)
  2. You can always use exhaustruct https://github.com/GaijinEntertainment/go-exhaustruct to enforce all fields initialized. If you care, the linter is there, so this is more of a skill issue.
    comment by crowdyriver · 2024-07-05 · in I have no constructor, and I must initialize
  3. …which is not always possible nor desirable. I usually use a linter to catch this kind of problem https://github.com/GaijinEntertainment/go-exhaustruct
    comment by BreakfastB0b · 2024-02-10 · in How I write HTTP services in Go after 13 years