Go

Go

Made by DeepSource

Hex literal with mixed case letters CRT-A0005

Style
Minor
Autofix

It is not recommended to use Hex literal with mixed casing.

The x in 0x should always be in lowercase. The other letters may be lowercase or uppercase, but they should not be in mixed cases. Following the recommended casing makes the hex literal consistent and more readable.

Bad practice

x := 0XFF // X should not be capitalized
y := 0xfF // mixed case should not be used

Recommended

x := 0xFF
y := 0xff // or 0xFF