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

vscode and atom 都不能跳转到定义 #2

Open
feelgood3000 opened this issue Feb 10, 2020 · 0 comments
Open

vscode and atom 都不能跳转到定义 #2

feelgood3000 opened this issue Feb 10, 2020 · 0 comments

Comments

@feelgood3000
Copy link

func sum(req Request) (Response, error) {
if request, ok := req.(sumRequest); ok {
var sum int
for _, i := range request {
sum += i
}
return sum, nil
}
return nil, errors.New("The request []int is required. ")

}

为什么我点击Request不能跳转到定义,我自己写的interface 或者struct都可以,为什么这个不可以,费解

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant