added a simple time.Duration test
This commit is contained in:
parent
80fd57a3bc
commit
59c70d19e4
14
duration-test/go.go
Normal file
14
duration-test/go.go
Normal file
@ -0,0 +1,14 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"time"
|
||||
)
|
||||
|
||||
func main() {
|
||||
var t time.Duration
|
||||
t = time.Millisecond
|
||||
fmt.Printf("%T %v\n", t, t)
|
||||
t = 3723 * time.Second
|
||||
fmt.Printf("%T %v\n", t, t)
|
||||
}
|
Loading…
Reference in New Issue
Block a user