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
+13.6k Golang : reCAPTCHA example
+10.6k Golang : How to unmarshal JSON inner/nested value and assign to specific struct?
+8.3k Useful methods to access blocked websites
+6.5k Golang : Handling image beyond OpenCV video capture boundary
+6.5k PHP : Shuffle to display different content or advertisement
+12.2k Golang : Split strings into command line arguments
+23.5k Golang : Check if element exist in map
+4.8k Golang : A program that contain another program and executes it during run-time
+13.1k Golang : Convert(cast) uintptr to string example
+17.9k Golang : Simple client server example
+5.6k Swift : Get substring with rangeOfString() function example