x

package module
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

README

x

Shared utility libraries and functions of xybor

Documentation

Index

Constants

View Source
const (
	ContentTypeApplicationJSON    = "application/json"
	ContentTypeXWWWFormUrlEncoded = "application/x-www-form-urlencoded"
)

Variables

View Source
var (
	ErrHTTPBadRequest = errors.New("")
)

Functions

func IsLetter

func IsLetter(c rune) bool

func IsLowerCaseLetter

func IsLowerCaseLetter(c rune) bool

func IsNumber

func IsNumber(c rune) bool

func IsSpace

func IsSpace(c rune) bool

func IsSpecialCharacter

func IsSpecialCharacter(c rune) bool

func IsUnderscore

func IsUnderscore(c rune) bool

func IsUpperCaseLetter

func IsUpperCaseLetter(c rune) bool

func IsWhiteSpace

func IsWhiteSpace(c rune) bool

func ParseHTTPRequest

func ParseHTTPRequest[T any](req *http.Request) (T, error)

func RandString

func RandString(n int) string

func WriteHTTPResponseJSON

func WriteHTTPResponseJSON(w http.ResponseWriter, code int, obj any) 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