https://golang.org/pkg/crypto/tls/#example_LoadX509KeyPair sets up a basic listener. Once you have this, it's just like a normal socket accept. See https://golang.org/pkg/net/#example_Listener for how to accept connections and handle them in their own goroutines.
-- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/08a3e63c-603f-4223-91b2-c2b84fe5cef7%40googlegroups.com.