Hacker GitHub

← All repos

kstenerud/go

View on GitHub ↗ ★ 21 Go

The Go programming language, modified to emit warnings

22 mentions on Hacker News by 3 people: 3 stories, 19 comments · first 2019-04-18 · latest 2025-07-12

Mentions per year 22 mentions · busiest year 2019 (12)
20082026
  1. …themselves universally provided native linting facilities, possibly even enabled by default. [1] https://github.com/kstenerud/go [2] https://github.com/tpope/heroku-fucking-console
  2. …language in my 25 year career. Hell, I even modified the damn compiler out of frustration! [1] [1] https://github.com/kstenerud/go#the-go-programming-language
    comment by kstenerud · 2020-07-08 · in Keeping your Go modules compatible
  3. Ask, and ye shall receive: https://github.com/kstenerud/go#the-go-programming-language
    comment by kstenerud · 2020-07-02 · in Go is boring, and that’s fantastic
  4. …I finally broke down and modified the compiler to add a -warnunused flag so I don't have to suffer. https://github.com/kstenerud/go#the-go-programming-language
    comment by kstenerud · 2020-07-02 · in Go is boring, and that’s fantastic
  5. I maintain a modified compiler ( https://github.com/kstenerud/go/blob/master/README.md#the-go... ) that can issue warnings instead for unused things. I use it as my daily driver for go development. main.go: package main import "fmt" func…
    comment by kstenerud · 2020-05-27 · in Diving into Go by building a CLI application
  6. …variables, and imports (warnings do not stop compilation or production of the final binary): https://github.com/kstenerud/go
    comment by kstenerud · 2020-04-09 · in Go 1.14.2 and Go 1.13.10 are released
  7. Go with warning flag patch also upgraded to 1.14: https://github.com/kstenerud/go#the-go-programming-language The warning flag patch allows you to do: go build -gcflags=-warnunused go test -gcflags=-warnunused which causes the compiler to…
    comment by kstenerud · 2020-02-26 · in Go 1.14 release notes
  8. …complier to add the -warnunused flag. It's fine to nag for this, but not to block the dev cycle. https://github.com/kstenerud/go
    comment by kstenerud · 2020-02-23 · in The Zen of Go
  9. …it's "good enough", and at least it's simple enough to dig around in the guts when I have to. [1] https://github.com/kstenerud/go [2] https://github.com/kstenerud/go-describe [3] https://github.com/kstenerud/go-subvert
    comment by kstenerud · 2020-02-23 · in The Zen of Go
  10. …of compilation! I may not agree with some of their philosophies, but the tooling is nice! [1] https://github.com/kstenerud/go
    comment by kstenerud · 2020-01-22 · in Go's Tooling Is an Undervalued Technology
  11. …with its anal retentive source rules. I finally got so frustrated that I modified the compiler: https://github.com/kstenerud/go
    comment by kstenerud · 2019-12-23 · in Lilith: x86-64 OS written in Crystal
  12. OMG absolutely perfect! I was afraid I'd have to do another https://github.com/kstenerud/go
  13. It's explained in the use case: https://github.com/kstenerud/go#use-case Use Case The use case for warnings is the exploratory development or debugging phases, where you really don't care about leaving unused things lying around for the…
  14. This is the commit in question: https://github.com/kstenerud/go/commit/334e03f12c9c94fe6aded... . Cool mod!
  15. …instead of errors for unused imports, variables, etc [1]. It was a fun little exercise :) [1] https://github.com/kstenerud/go
  16. …compile to make sure everything works. -- I prefer this method: - Install a custom go compiler from https://github.com/kstenerud/go - comment out a line of code to check something. - go test -gcflags=-warnunused - fix the bug. - uncomment…
    comment by kstenerud · 2019-06-13 · in Why I Don't Like Golang (2016)
  17. …boils down to a language that outgrew its original design, and hasn't evolved elegantly (yet). [1] https://github.com/kstenerud/go
    comment by kstenerud · 2019-06-12 · in Why I Don't Like Golang (2016)
  18. …etc [1] because I don't like fighting the compiler during debug or exploratory coding sessions. [1] https://github.com/kstenerud/go
  19. ▲ 1
    Go, modified to emit warnings for unused things
    story by kstenerud · 2019-05-10 · 0 comments
  20. Patch for "unused" warnings added to 1.12.5 and 1.11.10: https://github.com/kstenerud/go
    comment by kstenerud · 2019-05-07 · in Go 1.12.5 and Go 1.11.10 are released
  21. ▲ 2
    Show HN: Golang, Modified to Emit Warnings
    story by kstenerud · 2019-04-26 · 0 comments
  22. ▲ 1
    Golang, Modified to Emit Warnings
    story by kstenerud · 2019-04-18 · 0 comments