Skip to content

Commit

Permalink
Update example/main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
aymanbagabas authored Sep 16, 2024
1 parent a831485 commit 0d1175f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion example/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ func main() {
// But really, who has time to convert? Not you? Well, kiddo, here's
// a magical writer that will just auto-convert whatever ANSI you throw at
// it to the appropriate color profile.
myFancyANSI := "\x1b[38;2;107;80;255mCute puppy!!\x1b[m"
myFancyANSI := "\x1b[38;2;107;80;255mCute \x1b[1;3mpuppy!!\x1b[m"
w := colorprofile.NewWriter(os.Stdout, os.Environ())
w.Println("This terminal:", myFancyANSI)

Check failure on line 53 in example/main.go

View workflow job for this annotation

GitHub Actions / lint

Error return value of `w.Println` is not checked (errcheck)

Expand Down

0 comments on commit 0d1175f

Please sign in to comment.