Closed moorereason closed 7 years ago
When calling Red("cat%dog") or RedString("cat%dog") without additional args, the string is interpreted as a format. The result is cat%!d(MISSING)dog. This is unexpected behavior. Or as @davecheney said, "Wow, what an API footgun."
Red("cat%dog")
RedString("cat%dog")
cat%!d(MISSING)dog
See davecheney/httpstat/pull/70
When calling
Red("cat%dog")
orRedString("cat%dog")
without additional args, the string is interpreted as a format. The result iscat%!d(MISSING)dog
. This is unexpected behavior. Or as @davecheney said, "Wow, what an API footgun."See davecheney/httpstat/pull/70