Https

启动https服务可以通过生成config

  1. config, err := xweb.SimpleTLSConfig("cert.pem", "key.pem")
  2. if err != nil {
  3. fmt.Println(err)
  4. return
  5. }
  6. xweb.RunTLS("0.0.0.0:9999", config)