code: func (router *Router) StartHTTPS() {
  	cfg := router.config
  	if cfg.CertFile == "" {
  		LOGHANDLER.Fatal("No certificate provided for HTTPS")
  	}
  
  	if cfg.KeyFile == "" {
  		LOGHANDLER.Fatal("No key file provided for HTTPS")
  	}
  
  	host := cfg.Host
  	if len(cfg.HTTPSPort) > 0 {
  		host += ":" + cfg.HTTPSPort
  	}
  
  	router.httpsServer = &http.Server{
  		Addr:         host,
  		Handler:      router,
  		ReadTimeout:  cfg.ReadTimeout,
  		WriteTimeout: cfg.WriteTimeout,
  		TLSConfig: &tls.Config{
  			InsecureSkipVerify: cfg.InsecureSkipVerify,
  		},
  	}
  
  	LOGHANDLER.Info("HTTPS server, listening on", host)
  	err := router.httpsServer.ListenAndServeTLS(cfg.CertFile, cfg.KeyFile)
  	if err != nil && err != http.ErrServerClosed {
  		LOGHANDLER.Error("HTTPS server exited with error:", err.Error())
  	}
  }
docs: // StartHTTPS starts the server with HTTPS enabled