utils

package
v1.8.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Close added in v1.8.2

func Close(closer io.Closer)

Close closes the closer

func CloseAll added in v1.8.2

func CloseAll(closers ...io.Closer)

CloseAll close all closers

func ExtractDomain

func ExtractDomain(s string) string

func LoadProxy

func LoadProxy(p string) (proxy.Dialer, error)

func PathExist

func PathExist(path string) bool

func SplitHostPort

func SplitHostPort(s string) (string, uint16, error)

SplitHostPort uses net.SplitHostPort but converts port to uint16 format

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL