title: How to set TLS cipher for Go server?
body: <p>I'm currently using the following listen and serve command to run a secure websocket/file server:</p>
  
  <p><code>http.ListenAndServeTLS(":443", "site.crt","site.key", router)</code></p>
  
  <p>However, I want to set the cipher to TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256 and also set a min SSL/TLS version.</p>
  
  <p>How can I do this?</p>
  
  <p>I think I need to use this <a href="https://golang.org/src/crypto/tls/common.go?s=8340:12616#L233" rel="noreferrer">Config</a> structure somehow, but I'm not sure how to do this. </p>