Commit Graph

194 Commits

Author SHA1 Message Date
Giau. Tran Minh
f5e937daa9 fix: run wire with -mod=mod (#353)
* fix: run wire with -mod=mod

* chore: update test with mod flag
2022-05-26 22:31:39 -07:00
Russ Cox
9d78e0ad8c README: fix install instructions (#339)
go get p has been replaced by go install p@latest.
2022-01-06 19:25:54 -08:00
Eli Bendersky
2f70a008e2 Fix build badge link in README (#317) 2021-08-31 08:30:57 -07:00
Robert van Gent
3b6fb78a3f tests: disable apidiff check (#316) 2021-08-30 17:57:05 -07:00
Robert van Gent
7e8af29048 doc: fix badge in readme (#315) 2021-08-30 16:32:22 -07:00
Robert van Gent
233b341f94 doc: fix badge in readme (#314) 2021-08-30 16:31:21 -07:00
Robert van Gent
3fd3a427dd doc: fix badge in readme (#313) 2021-08-30 16:28:34 -07:00
Robert van Gent
ae4e74aa6b all: update stale refs to Travis (#312) 2021-08-30 16:16:39 -07:00
Robert van Gent
737d4615ed all: fix Github Workflow for tests, drop Travis 2021-08-30 15:21:53 -07:00
Robert van Gent
8b20581338 all: update record/replay files for new version of go (#310) 2021-08-30 13:35:47 -07:00
Robert van Gent
e23bb7109a all: try to fix test workflow (#308) 2021-08-30 13:13:41 -07:00
Robert van Gent
cb1364cdf1 all: add a Github Workflow to run tests (#307) 2021-08-30 13:01:23 -07:00
Robert van Gent
d07cde0df9 update to go 1.16 (#281) 2021-02-17 10:27:44 -08:00
kzh125
0ac845078c docs: fix incorrect generated code in example (#277)
Should be "return foobarbaz.Baz{}, err"
2021-01-25 17:57:54 -08:00
Luca Steeb
a58291c0b8 internal/wire: use full go run command in go:generate comment (#268)
Change the go:generate command to use the full go run ... command
to ensure the version specified in the current go module is used
instead of the global binary.

Fixes #160
2021-01-25 17:55:11 -08:00
Ross Light
19bf7dafc5 README: add link to GitHub Discussions (#273) 2020-12-08 16:24:17 -08:00
Ross Light
d3585c5243 docs: add FAQ for explicit binds (#267)
Updates #242
2020-11-28 16:31:21 -08:00
Eli Bendersky
31708f3b2e doc: update README to point to issues for questions (#264) 2020-11-04 13:36:25 -08:00
Matt Wlazlo
523d8fbe88 Permit specifying build tags for analysis (#252)
Fixes #251
2020-07-09 08:41:00 -07:00
Taiki Fukui
8d4ff5b1ae docs: fix syntax error (#255) 2020-07-04 09:07:18 -07:00
ajjensen13
4d5ab743af internal/wire: copy doc comment for generated injectors (#254)
Fixes #244
2020-06-11 08:06:02 -07:00
Aleksandr Razumov
978b7803d3 internal/wire: remove unused method (#249) 2020-05-24 08:25:52 -07:00
Jason Song
ff891bb6d8 cmd/wire: simplify gather append (#248) 2020-05-04 08:36:46 -07:00
Dmitry Savintsev
fda113507a internal/wire: fix panic in objectCache.processExpr (#236) 2020-01-10 10:10:27 -08:00
Ahmed
578b29ef42 all: remove unused dependencies (#228) 2019-12-11 10:11:01 -08:00
Ross Light
b730ad0fbf internal/wire: use set to determine which argument to use in zero-call injectors (#223)
Fixes #222
2019-11-27 15:23:39 -08:00
Ross Light
a5347c86bc internal/wire: fix crash when giving wire.Struct a bad first argument (#220) 2019-11-11 11:06:03 -08:00
Ross Light
0d3b2ebd4a internal/wire: mark tests as parallelizable (#218) 2019-10-25 15:00:03 -07:00
Eli Bendersky
f240b7ac70 README: reflect new project status (#217) 2019-10-05 07:58:47 -07:00
Jose Gil
55a93fac11 cmd: Add --output_file_prefix, which sets a prefix for the output file name "wire_gen.go" 2019-09-25 08:59:48 -07:00
Robert van Gent
c385f07c5d wire: wire.FieldsOf should not provide pointer to field type for non-pointer structs (#210) 2019-09-05 14:17:17 -07:00
Robert van Gent
f85ec5c4a6 all: enable go 1.13 (#212) 2019-09-05 11:50:57 -07:00
Robert van Gent
2b7d1205a1 wire: FieldsOf now provides a pointer to the field type as well as the actual field type (#209) 2019-09-03 12:57:57 -07:00
Ariel Mashraki
66f78fc846 internal/wire: replace keyword list with token api (#203) 2019-07-16 09:00:00 -07:00
Eli Bendersky
2f518a0d93 Update README to use wording from annoucement w.r.t. beta (#199) 2019-06-18 13:09:35 -07:00
shantuo
8c5af0eafa change project status (#198) 2019-06-18 11:49:16 -07:00
shantuo
89cb901fdf document wire.Struct first argument (#197) 2019-06-17 17:27:07 -07:00
shantuo
93b1ce745f doc: add guide to use the wire:"-" tag (#195) 2019-06-11 15:35:05 -07:00
Y.Horie
000df02f3d parse: use reflect.StructTag to detect wire tags #179 (#181) 2019-06-03 14:00:48 -07:00
Robert van Gent
b5d7d7864b wire: remove color in wire show (#190)
Fixes #189
2019-05-29 15:02:06 -07:00
Robert van Gent
89bcaa23b9 wire: improve color output to term by using fatih/color (#186) 2019-05-29 11:46:31 -07:00
shantuo
ed1f30e1e8 docs: add FieldsOf to the guide (#159) 2019-05-17 16:02:42 -07:00
shantuo
cbfca74d8a wire: support using '-' tag to prevent filling struct fields (#163) 2019-05-17 15:56:42 -07:00
Ross Light
7d9ac45bea internal: fix issues found by shellcheck (#177) 2019-05-16 14:54:17 -07:00
Robert van Gent
fe01654174 cmd/wire: add a --header_file flag to the "gen" and "diff" commands (#175) 2019-05-16 09:56:42 -07:00
Robert van Gent
d76a979091 wire: use subcommands package, improving help (#173) 2019-05-14 12:51:16 -07:00
Robert van Gent
c1be6ec0d8 travis: refresh runtests.sh and Travis config (#174) 2019-05-14 11:31:53 -07:00
Robert van Gent
c1a359a7ca docs: clarify docstring about function parameters being of non-identical types (#167) 2019-05-10 14:11:27 -07:00
Jan Hájek
2183ee4806 internal/wire: add package name to unused provider message (#162)
Fixes #161
2019-05-02 09:57:08 -07:00
shantuo
d079521b6f wire: reword the deprecation message of struct (#158) 2019-04-23 13:27:33 -07:00