Hacker GitHub

← All repos

google/wire

View on GitHub ↗ ★ 14,377 Go archived

Compile-time Dependency Injection for Go

13 mentions on Hacker News by 13 people: 3 stories, 10 comments · first 2018-12-02 · latest 2025-09-12

Mentions per year 13 mentions · busiest year 2022 (4)
20082026
  1. ▲ 2
    Google's Wire is no longer maintained
    story by maxboone · 2025-09-12 · 0 comments
  2. …so now everything shuts down in order instead... well who knows :-D https://go.dev/blog/wire https://github.com/google/wire
    comment by cientifico · 2025-05-05 · in Graceful Shutdown in Go: Practical Patterns
  3. code generation is a mostly disjoint topic from DI. Granted, some solutions like https://github.com/google/wire use code generation, but you're exactly right about their pitfalls. If your dev environment doesn't have good support for…
  4. …weird implicit things. I still wire dependencies up by hand, but I'm curious what others do. [1]: https://github.com/google/wire/tree/main
    comment by Karrot_Kream · 2024-03-25 · in The case of a leaky goroutine
  5. As they didn't seem to link to it https://github.com/google/wire
  6. I believe Go supports DI via Wire ( https://github.com/google/wire ).
    comment by shadowgovt · 2022-03-30 · in Generics can make your Go code slower
  7. …golang, for some reason, wire[1] at least still gives you type safety and compile-time failures. 1. https://github.com/google/wire
    comment by dcormier · 2022-02-27 · in Dependency injection in Go with Uber-go/fx
  8. For a slightly different take on this problem, check out Wire ( https://github.com/google/wire ).
  9. …"enterprise solutions" while the community adoption is at 694 projects importing wire: https://pkg.go.dev/github.com/google/wire?tab=importedby
    comment by yencabulator · 2022-01-18 · in Jodd – The Unbearable Lightness of Java
  10. …give it up just to simplify the IDE's job. But the IDE having this functionality does matter. [0] https://github.com/google/wire [1] https://github.com/uber-go/fx
  11. …tuples Indeed. I forgot about those :) Yup, that would be a great use case for generics. [1] https://github.com/google/wire
  12. ▲ 1
    Wire: Compile-Time Dependency Injection for Go
    story by rodrigobrito · 2018-12-03 · 1 comment
  13. ▲ 2
    Google Wire: Compile-time dependency injection for Go
    story by starbugs · 2018-12-02 · 0 comments