util

package
v1.21.5 Latest Latest
Warning

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

Go to latest
Published: May 16, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Concat added in v1.15.5

func Concat[T any](inputs ...[]T) (outputs []T)

func CreateRenamedFileInfo added in v1.15.14

func CreateRenamedFileInfo(name string, fileInfo fs.FileInfo) renamedFileInfo

func ExtractIPPort added in v1.15.5

func ExtractIPPort(strIPPort string) (ip, port string)

func Filter added in v1.15.5

func Filter[T any](inputs []T, filterFunc func(T) bool) (outputs []T)

func GetFileInfoType added in v1.15.4

func GetFileInfoType(filename string) (file *os.File, info os.FileInfo, contentType string, err error)

func IsUrlSameAsReq added in v1.15.13

func IsUrlSameAsReq(url *url.URL, req *http.Request) bool

func LogAccess added in v1.20.0

func LogAccess(logger *serverLog.Logger, msg string)

func LogError

func LogError(logger *serverLog.Logger, err error)

func LogErrorString added in v1.15.4

func LogErrorString(logger *serverLog.Logger, err string)

func ReplaceUrl added in v1.15.5

func ReplaceUrl(reMatch *regexp.Regexp, toMatch, newUrl string) (*url.URL, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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