Skip to content

Latest commit

 

History

History
12 lines (10 loc) · 226 Bytes

README.md

File metadata and controls

12 lines (10 loc) · 226 Bytes

Https

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

config, err := xweb.SimpleTLSConfig("cert.pem", "key.pem")
    if err != nil {
        fmt.Println(err)
        return
    }

    xweb.RunTLS("0.0.0.0:9999", config)