29 return l.Network()
30}
31
32func NewLys() *lys {33 return &lys{
34 Conns: make(chan net.Conn),
35 }
61 return l.Network()
62}
63
64func NewHandleHijackListener() *lys {65 return &lys{conns: make(chan net.Conn)}
66}
11 _ k0s.Manager = NewManager()
12)
13
14func NewManager() *manager {15 return &manager{
16 Map: linkedhashmap.New(),
17 }
An exported function or method returning a value of an unexported type may be frustrating to use.
In Go, if the function or method starts with a lowercase letter, it is not exported outside the package.
type unexportedType string
func ExportedFunc() *unexportedType {
return &unexportedType("some string")
}
type ExportedType string
func ExportedFunc() *ExportedType {
return &ExportedType("some string")
}