github.com/golangci/go-tools@v0.0.0-20190318060251-af6baa5dc196/stylecheck/testdata/src/CheckTimeNames/CheckTimeNames.go (about) 1 // Package pkg ... 2 package pkg 3 4 import "time" 5 6 type T1 struct { 7 aMS int 8 B time.Duration 9 BMillis time.Duration // MATCH "don't use unit-specific suffix" 10 } 11 12 func fn1(a, b, cMS time.Duration) { // MATCH "don't use unit-specific suffix" 13 var x time.Duration 14 var xMS time.Duration // MATCH "don't use unit-specific suffix" 15 var y, yMS time.Duration // MATCH "don't use unit-specific suffix" 16 _, _, _, _ = x, xMS, y, yMS 17 }