17 lines
197 B
Go
17 lines
197 B
Go
package main
|
|
|
|
import (
|
|
"crypto/tls"
|
|
)
|
|
|
|
type myServer struct {
|
|
tlsConfig *tls.Config
|
|
}
|
|
|
|
func NewMyServer(tlsConfig *tls.Config) *myServer {
|
|
s := &myServer{
|
|
tlsConfig: tlsConfig,
|
|
}
|
|
return s
|
|
}
|