Skip to content

Latest commit

 

History

History
38 lines (31 loc) · 1.06 KB

File metadata and controls

38 lines (31 loc) · 1.06 KB

Go Utils

通用工具库集合。

模块列表

安装

go get github.com/fireflycore/go-utils

TLSX 快速示例

tlsConfig, enabled, err := tlsx.NewTLSConfig(&tlsx.TLS{
	CaCert:        "/path/to/ca.pem",
	ClientCert:    "/path/to/client.pem",
	ClientCertKey: "/path/to/client.key",
})
if err != nil {
	return err
}
if enabled {
	_ = tlsConfig
}