mirror of
https://github.com/XTLS/Xray-core.git
synced 2025-06-14 15:28:40 +00:00
Style: format code by gofumpt (#761)
This commit is contained in:
parent
d77be80b40
commit
e286cdcaa8
111 changed files with 293 additions and 291 deletions
|
@ -14,9 +14,7 @@ import (
|
|||
"github.com/xtls/xray-core/transport/internet"
|
||||
)
|
||||
|
||||
var (
|
||||
globalSessionCache = tls.NewLRUClientSessionCache(128)
|
||||
)
|
||||
var globalSessionCache = tls.NewLRUClientSessionCache(128)
|
||||
|
||||
// ParseCertificate converts a cert.Certificate to Certificate.
|
||||
func ParseCertificate(c *cert.Certificate) *Certificate {
|
||||
|
|
|
@ -11,9 +11,7 @@ import (
|
|||
|
||||
//go:generate go run github.com/xtls/xray-core/common/errors/errorgen
|
||||
|
||||
var (
|
||||
_ buf.Writer = (*Conn)(nil)
|
||||
)
|
||||
var _ buf.Writer = (*Conn)(nil)
|
||||
|
||||
type Conn struct {
|
||||
*tls.Conn
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue