Skip to content

Commit

Permalink
Fix lint errors
Browse files Browse the repository at this point in the history
  • Loading branch information
at-wat committed Apr 9, 2024
1 parent 464ab3e commit db75c56
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions dummy.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ package sandbox

import (
"errors"
"log"

_ "github.com/pion/transport/v3/test" // nolint
)
Expand All @@ -18,13 +19,14 @@ type PublicAPI struct {
PublicMember int
}

// PublicFunc is a dummy public method.
func (p *PublicAPI) PublicFunc() {
println("Running PublicAPI.PublicFunc")
println("PublicAPI.PublicMember: ", p.PublicMember)
log.Println("Running PublicAPI.PublicFunc")

Check failure on line 24 in dummy.go

View workflow job for this annotation

GitHub Actions / lint / Go

use of `log.Println` forbidden by pattern `^log.(Panic|Fatal|Print)(f|ln)?$` (forbidigo)
log.Println("PublicAPI.PublicMember: ", p.PublicMember)

Check failure on line 25 in dummy.go

View workflow job for this annotation

GitHub Actions / lint / Go

use of `log.Println` forbidden by pattern `^log.(Panic|Fatal|Print)(f|ln)?$` (forbidigo)
if p.PublicMember == 1 {
println("PublicAPI.PublicMember is one")
log.Println("PublicAPI.PublicMember is one")

Check failure on line 27 in dummy.go

View workflow job for this annotation

GitHub Actions / lint / Go

use of `log.Println` forbidden by pattern `^log.(Panic|Fatal|Print)(f|ln)?$` (forbidigo)
}
if p.PublicMember != 1 {
println("PublicAPI.PublicMember is not one")
log.Println("PublicAPI.PublicMember is not one")
}
}

0 comments on commit db75c56

Please sign in to comment.