mirror of
https://github.com/mgechev/revive.git
synced 2024-11-28 08:49:11 +02:00
14 lines
393 B
Go
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"/
|