Commit Graph

6 Commits

Author SHA1 Message Date
Michael McLoughlin
72b8db9c80 all: upgrade golangci-lint and formatters (#240) 2022-03-27 15:31:26 -07:00
Michael McLoughlin
1d235fb56e buildtags: Format only go:build lines for go 1.18+ (#211)
```
$ ./tmp/testgo161718.sh ./buildtags/ ./printer/
+ go1.16.8 test ./buildtags/ ./printer/
ok  	github.com/mmcloughlin/avo/buildtags	0.001s
ok  	github.com/mmcloughlin/avo/printer	0.002s
+ go1.17.2 test ./buildtags/ ./printer/
ok  	github.com/mmcloughlin/avo/buildtags	0.001s
ok  	github.com/mmcloughlin/avo/printer	0.002s
+ gotip test ./buildtags/ ./printer/
ok  	github.com/mmcloughlin/avo/buildtags	0.001s
ok  	github.com/mmcloughlin/avo/printer	0.002s
```

Updates #183
2021-10-30 00:10:16 -07:00
Michael McLoughlin
55d98ccf77 buildtags: go:build support (#208)
Implements formatting of constraints according to the current Go version
supported syntax. This is achieved by delegating to go/format and extracting
out the resulting comments.

Also provides functions to query for constraint syntax support, which are
mainly intended for writing version-dependent tests.

Updates #183
2021-10-29 00:43:49 -07:00
Michael McLoughlin
c48569a6b0 buildtags: doc exported symbols (#9) 2019-01-04 23:22:35 -08:00
Michael McLoughlin
d09e9ce5f9 buildtags: add Evaluate method
Updates #3
2019-01-02 00:10:55 -08:00
Michael McLoughlin
beeb9ed525 buildtags: package for build tag representation
Updates #3
2019-01-01 22:55:57 -08:00