utils

package
v0.0.0-...-af25e16 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Exists

func Exists(pth string) (exists bool, err error)

func ExistsDir

func ExistsDir(pth string) (exists bool, err error)

func ExistsFile

func ExistsFile(pth string) (exists bool, err error)

func FormatHostPort

func FormatHostPort(hostname string, port int) string

func GetStatusMessage

func GetStatusMessage(code int) string

func LogError

func LogError(clientId string, err error)

func StripPort

func StripPort(hostport string) string

func WriteStatus

func WriteStatus(w http.ResponseWriter, code int)

func WriteText

func WriteText(w http.ResponseWriter, code int, text string)

func WriteUnauthorized

func WriteUnauthorized(w http.ResponseWriter, msg string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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