Skip to content

Instantly share code, notes, and snippets.

@mitchellh
Created October 14, 2013 08:18
Show Gist options
  • Save mitchellh/3883097d9d57fccbfb88 to your computer and use it in GitHub Desktop.
Save mitchellh/3883097d9d57fccbfb88 to your computer and use it in GitHub Desktop.
package main
import (
"net"
)
func main() {
var conn net.Conn
conn = fakeDial()
conn.Close()
}
func fakeDial() *net.TCPConn {
return nil
}
@jimmylee
Copy link

This might help, although its out of context of the problem here: http://play.golang.org/p/7GohUdfIsD

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment