1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-21 17:16:40 +02:00
revive/testdata/json_data_format_var_naming.go
2024-11-11 19:31:18 +01:00

9 lines
281 B
Go

package fixtures
func foo() string {
customID := "result" // ignore
customVm := "result" // json:{"MATCH": "var customVm should be customVM"}
CUSTOMER_UP := "result" // json:{"MATCH": "don't use ALL_CAPS in Go names; use CamelCase", "Confidence": 0.8}
return customId
}