Skip to content

Commit e20616b

Browse files
authored
Release v0.2.0 (#65)
1 parent 3c0cfb8 commit e20616b

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

CHANGELOG.md

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,24 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## Unreleased
8+
## v0.2.0 - 2023-11-30
9+
10+
This release contains minor improvements to the errtrace code transformer
11+
allowing it to fit more use cases.
12+
913
### Added
10-
- cmd/errtrace: Add -l flag to print files that would be changed
11-
without changing them.
12-
- cmd/errtrace: Support opt-out for specific lines
13-
with a `//errtrace:skip` comment.
14+
- cmd/errtrace:
15+
Add -l flag to print files that would be changed without changing them.
16+
You can use this to build a check to verify that your code is instrumented.
17+
- cmd/errtrace: Support opt-out on lines with a `//errtrace:skip` comment.
18+
Optionally, a reason may be specified alongside the comment.
19+
The command will print a warning for any unused `//errtrace:skip` comments.
20+
21+
```go
22+
if err != nil {
23+
return io.EOF //errtrace:skip(io.Reader expects io.EOF)
24+
}
25+
```
1426

1527
## v0.1.1 - 2023-11-28
1628
### Changed

0 commit comments

Comments
 (0)