Golang net/http.Server.ListenAndServeTLS() function example
package net/http
Golang net/http.Server.ListenAndServeTLS() function usage example
Code modified from https://www.socketloop.com/references/golang-net-http-server-listenandserve-function-and-server-type-example
TLSServer := &http.Server{Handler: mux}
TLSServer.Addr = "hostname:443"
err := TLSServer.ListenAndServeTLS("server.pem", "server.key")
See also : https://www.socketloop.com/references/golang-crypto-tls-listen-and-newlistener-functions-example
References :
See also : Golang net/http.Server.ListenAndServe() function and Server type example
Advertisement
Something interesting
Tutorials
+22.4k Golang : How to read JPG(JPEG), GIF and PNG files ?
+9.4k Golang : Qt Yes No and Quit message box example
+35.9k Golang : Integer is between a range
+12.4k Elastic Search : Return all records (higher than default 10)
+12.9k Python : Convert IPv6 address to decimal and back to IPv6
+5.8k Golang : Fix opencv.LoadHaarClassifierCascade The node does not represent a user object error
+7.9k Swift : Convert (cast) String to Float
+31.5k Golang : Example for ECDSA(Elliptic Curve Digital Signature Algorithm) package functions
+19.7k Golang : Archive directory with tar and gzip
+5.5k Clean up Visual Studio For Mac installation failed disk full problem
+40.5k Golang : Convert to io.ReadSeeker type
+11.5k CodeIgniter : Import Linkedin data