Skip to content

fireflycore/go-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

Function of higher order

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages