-
-
Save mitchellh/3883097d9d57fccbfb88 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package main | |
import ( | |
"net" | |
) | |
func main() { | |
var conn net.Conn | |
conn = fakeDial() | |
conn.Close() | |
} | |
func fakeDial() *net.TCPConn { | |
return nil | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This might help, although its out of context of the problem here: http://play.golang.org/p/7GohUdfIsD