Install & Compatibility
Where this runs
No compatibility data collected yet for this library.
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
Dial a TLS connection using xtls.
package main
import (
"crypto/tls"
"fmt"
"github.com/xtls/go"
)
func main() {
config := &tls.Config{}
conn, err := tls.Dial("tcp", "example.com:443", config)
if err != nil {
panic(err)
}
defer conn.Close()
fmt.Println("connected")
}
Debug
Known issues
No known issues recorded.
Upgrade
Version history
0.0.0-20230107031059-4610f88d00f3latest on pkg.go.dev
Audit
Dependencies
No dependency data recorded yet.