Oleksandr Redko
  • Blog
  • About / Contact
  • Tags
  • Courses

Lima


Teaching go-critic a new trick with %#q

 Posted on June 16, 2026  |   3 min  |   577 words

Recently, I learned that %#q in the fmt package wraps a string in backquotes. Unlike plain %q, which adds double quotes ", the # flag switches to backquotes `.

This little discovery led me to extend a go-critic check that didn’t know about it.

Screenshot of the PR on go-critic to extend the sprintfQuotedString checker
[Read More]
Tags: golang linter opensource golangci-lint lima revive 

Oleksandr Redko  •  © 2013 - 2026  •  Oleksandr Redko

Hugo v0.163.2 powered  •  Theme Beautiful Hugo adapted from Beautiful Jekyll