-
Notifications
You must be signed in to change notification settings - Fork 20
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
Errors compiling PortScanner #2
Comments
I am facing same problem github.com/anvie/port-scannersrc/github.com/anvie/port-scanner/PortScanner.go:27: too few values in struct initializer |
I went ahead and forked and fixed it. I think I submitted a PR? I don't https://github.com/rhinesj/port-scanner On Tue, Jun 14, 2016 at 9:30 AM, ibrahim edib kokdemir <
|
Hi @rhinesj let me check, sorry for long time not checked it up. |
It looks like a timeout field was added and the rest of the code wasn't updated to account for it.
go version go1.5.3 darwin/amd64
github.com/anvie/port-scanner
../../../../anvie/port-scanner/PortScanner.go:27: too few values in struct initializer
../../../../anvie/port-scanner/PortScanner.go:50: cannot use h.timeout (type int) as type time.Duration in argument to net.DialTimeout
../../../../anvie/port-scanner/PortScanner.go:82: cannot use h.timeout (type int) as type time.Duration in argument to net.DialTimeout
../../../../anvie/port-scanner/PortScanner.go:87: cannot use conn (type net.Conn) as type *net.TCPConn in return argument: need type assertion
The text was updated successfully, but these errors were encountered: