Skip to content

time.Duration's method can not completed automaticly and can not go-to-define #1911

@liugangnhm

Description

@liugangnhm

image

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions