Documentation
¶
Index ¶
- func CopyBuffer(dst io.Writer, src io.Reader, buf []byte) (written int64, err error)
- func ExtractDomain(s string) string
- func ForceClose(closer io.Closer)
- func ForceCloseAll(closers ...io.Closer)
- func LoadProxy(p string) (proxy.Dialer, error)
- func PathExist(path string) bool
- func PrintErrorIfCritical(err error, msg string)
- func SplitHostPort(s string) (string, uint16, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CopyBuffer ¶
CopyBuffer is the actual implementation of Copy and CopyBuffer. if buf is nil, one is allocated. Note that this is a copy function of io from the built-in, the only changes is let preset buffer size respect the transport settings.
func ExtractDomain ¶
func PrintErrorIfCritical ¶
PrintErrorIfCritical prints only error that critical
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.