Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
liugangnhm opened this issue Oct 9, 2015 · 0 comments
Assignees
Milestone

Comments

@liugangnhm
Copy link

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.

@ignatov ignatov self-assigned this Oct 9, 2015
@ignatov ignatov added this to the 1.0.0 milestone Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants