code: func (a *TCPAcceptor) ListenAndServeTLS(cert, key string) {
  	crt, err := tls.LoadX509KeyPair(cert, key)
  	if err != nil {
  		logger.Log.Fatalf("Failed to listen: %s", err.Error())
  	}
  
  	tlsCfg := &tls.Config{Certificates: []tls.Certificate{crt}}
  
  	listener, err := tls.Listen("tcp", a.addr, tlsCfg)
  	a.listener = listener
  	a.running = true
  	a.serve()
  }
docs: // ListenAndServeTLS listens using tls