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

Cross package functions are not handled correctly #10

Open
dcu opened this issue Apr 6, 2019 · 1 comment
Open

Cross package functions are not handled correctly #10

dcu opened this issue Apr 6, 2019 · 1 comment

Comments

@dcu
Copy link

dcu commented Apr 6, 2019

example:

package p

import "io"

// CloseSilently ...
func CloseSilently(c io.Closer) {
	_ = c.Close()
}
package main

import (
	"net/http"

	"p"
)

func main() {
	resp, _ := http.Get("https://example.com")
	defer p.CloseSilently(resp.Body)
}
@dcu
Copy link
Author

dcu commented Apr 11, 2019

@timakin can you take a look at this please?

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