1
0
mirror of https://github.com/mgechev/revive.git synced 2025-02-09 13:37:14 +02:00
revive/fixtures/golint/time-names.go
2018-02-04 15:02:45 -08:00

14 lines
393 B
Go

// Test of time suffixes.
// Package foo ...
package foo
import (
"flag"
"time"
)
var rpcTimeoutMsec = flag.Duration("rpc_timeout", 100*time.Millisecond, "some flag") // MATCH /var rpcTimeoutMsec is of type *time.Duration; don't use unit-specific suffix "Msec"/
var timeoutSecs = 5 * time.Second // MATCH /var timeoutSecs is of type time.Duration; don't use unit-specific suffix "Secs"/