- Notifications
You must be signed in to change notification settings - Fork 567
Closed
Description
sample code
package main import ( "testing" "time" ) var ( interval1 = time.Second interval2 = 5 * time.Second ) func TestIdeaTimeApi(t *testing.T) { t.Logf("%T %T", interval1, interval2) t.Logf("%d %d", interval1.Nanoseconds(), interval2.Nanoseconds()) }
output is:
/usr/local/go/bin/go test -v testgolang -run ^TestIdeaTimeApi$ Testing started at 下午11:18 ... intellij_idea_time_api_test.go:14: time.Duration time.Duration intellij_idea_time_api_test.go:15: 1000000000 5000000000 PASS ok testgolang 0.013s
plugin version: 0.9.485
idea version: 14.1.5 141.2735
go version go1.5.1 darwin/amd64
os: 10.11 (15A284)
And I found godef
does not work either on this scenario.