这个是正常的:
fmt.Printf(`user_%d`, 1)
这个会标记错误:
fmt.Printf(`select * from user_%d`, 1)
ERROR:
'(', ',', <from alias definition>, <index hint option>, CROSS, EXCEPT, FOR, GROUP, HAVING, INNER, INTERSECT, INTO, JOIN, LEFT, LIMIT, LOCK, NATURAL, ORDER, PARTITION, PROCEDURE, RIGHT, STRAIGHT_JOIN, UNION, WHERE or WINDOW expected, got '%'
而且无法消除,即使关闭 IDE 与 SQL 相关的所有语法检查依然会提示。