Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yyoshiki41 authored May 5, 2024
1 parent 10e1e49 commit 0646a71
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,11 @@ rdeadcode -file path/to/your/file.go -function deadFunction

## Known issues

> [!WARNING] > _deadcode_ detects methods that implement an interface as dead code if it is not used in the project.
> [!WARNING]
> _deadcode_ detects methods that implement an interface as dead code if it is not used in the project.
Please verify the interface compliance at compile time and restore the method when rdeadcode removes it.

```go
// Verify interface compliance at compile time
var _ fmt.Stringer = myString{}
Expand All @@ -39,5 +42,3 @@ func (s myString) String() string {
return s.Value
}
```

Please verify the interface compliance at compile time and restore the method when rdeadcode removes it.

0 comments on commit 0646a71

Please sign in to comment.