1
0
mirror of https://github.com/mgechev/revive.git synced 2024-11-28 08:49:11 +02:00
revive/testdata/enforce-map-style-any.go
Denis Voytyuk 356e667369
feat: add support for enforce-map-style rule (#895)
Co-authored-by: chavacava <salvadorcavadini+github@gmail.com>
2023-09-17 11:22:11 +02:00

14 lines
199 B
Go

package fixtures
func somefn() {
m1 := make(map[string]string)
m2 := map[string]string{}
m3 := make(map[string]string, 10)
m4 := map[string]string{"k1": "v1"}
_ = m1
_ = m2
_ = m3
_ = m4
}