Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
.github/ | H | 11-Dec-2019 | - | |||
_tutorial/ | H | 11-Dec-2019 | - | |||
cmd/wire/ | H | 11-Dec-2019 | - | |||
docs/ | H | 11-Dec-2019 | - | |||
internal/ | H | 11-Dec-2019 | - | |||
.codecov.yml | H A D | 11-Dec-2019 | 209 | |||
.contributebot | H A D | 11-Dec-2019 | 232 | |||
.travis.yml | H A D | 11-Dec-2019 | 1.6 KiB | |||
AUTHORS | H A D | 11-Dec-2019 | 645 | |||
CODE_OF_CONDUCT.md | H A D | 11-Dec-2019 | 335 | |||
CONTRIBUTING.md | H A D | 11-Dec-2019 | 7.2 KiB | |||
CONTRIBUTORS | H A D | 11-Dec-2019 | 1.8 KiB | |||
LICENSE | H A D | 11-Dec-2019 | 11.1 KiB | |||
README.md | H A D | 11-Dec-2019 | 1.8 KiB | |||
go.mod | H A D | 11-Dec-2019 | 216 | |||
go.sum | H A D | 11-Dec-2019 | 1.1 KiB | |||
wire.go | H A D | 11-Dec-2019 | 7.6 KiB |
README.md
1# Wire: Automated Initialization in Go 2 3[![Build Status](https://travis-ci.com/google/wire.svg?branch=master)][travis] 4[![godoc](https://godoc.org/github.com/google/wire?status.svg)][godoc] 5[![Coverage](https://codecov.io/gh/google/wire/branch/master/graph/badge.svg)](https://codecov.io/gh/google/wire) 6 7 8Wire is a code generation tool that automates connecting components using 9[dependency injection][]. Dependencies between components are represented in 10Wire as function parameters, encouraging explicit initialization instead of 11global variables. Because Wire operates without runtime state or reflection, 12code written to be used with Wire is useful even for hand-written 13initialization. 14 15For an overview, see the [introductory blog post][]. 16 17[dependency injection]: https://en.wikipedia.org/wiki/Dependency_injection 18[introductory blog post]: https://blog.golang.org/wire 19[godoc]: https://godoc.org/github.com/google/wire 20[travis]: https://travis-ci.com/google/wire 21 22## Installing 23 24Install Wire by running: 25 26```shell 27go get github.com/google/wire/cmd/wire 28``` 29 30and ensuring that `$GOPATH/bin` is added to your `$PATH`. 31 32## Documentation 33 34- [Tutorial][] 35- [User Guide][] 36- [Best Practices][] 37- [FAQ][] 38 39[Tutorial]: ./_tutorial/README.md 40[Best Practices]: ./docs/best-practices.md 41[FAQ]: ./docs/faq.md 42[User Guide]: ./docs/guide.md 43 44## Project status 45 46As of version v0.3.0, Wire is *beta* and is considered feature complete. It 47works well for the tasks it was designed to perform, and we prefer to keep it 48as simple as possible. 49 50We'll not be accepting new features at this time, but will gladly accept bug 51reports and fixes. 52 53## Community 54 55You can contact us on the [go-cloud mailing list][]. 56 57This project is covered by the Go [Code of Conduct][]. 58 59[Code of Conduct]: ./CODE_OF_CONDUCT.md 60[go-cloud mailing list]: https://groups.google.com/forum/#!forum/go-cloud 61