utils

package
v0.0.0-...-66821cd Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2026 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatLocalPath

func FormatLocalPath(path []byte) []byte

func FormatLocalPathString

func FormatLocalPathString(path string) string

func GenerateClearCookie

func GenerateClearCookie(name, domain, path string) string

func GenerateSecureToken

func GenerateSecureToken(length int) string

func GenerateSetCookie

func GenerateSetCookie(name, value, domain, path, sameSite string, age time.Duration) string

func GetCookiesFromStr

func GetCookiesFromStr(cookieStr string) map[string]string

func GetIpAddress

func GetIpAddress(r *http.Request) string

func HasOnlyLettersAndNumbers

func HasOnlyLettersAndNumbers(s string) bool

func IsDir

func IsDir(path string) bool

func ValidatePath

func ValidatePath(path string) error

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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