github.com/serversong/goreporter@v0.0.0-20200325104552-3cfaf44fd178/linters/golint/testdata/time.go (about) 1 // Test of time suffixes. 2 3 // Package foo ... 4 package foo 5 6 import ( 7 "flag" 8 "time" 9 ) 10 11 var rpcTimeoutMsec = flag.Duration("rpc_timeout", 100*time.Millisecond, "some flag") // MATCH /Msec.*\*time.Duration/ 12 13 var timeoutSecs = 5 * time.Second // MATCH /Secs.*time.Duration/