conv

package
v0.1.12 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func First

func First[T any](t T, _ interface{}) T

func FirstEl

func FirstEl[T any](lst []any) *T

func FirstQuery

func FirstQuery[T any](lst []string) *T

func Index

func Index[E comparable](s []E, v E) int

func Parse

func Parse[T any](w http.ResponseWriter, r *http.Request) *T

func ParseValue

func ParseValue[T PathType](r *http.Request, key string) T

func ToBool

func ToBool(el interface{}) bool

func ToInt

func ToInt(el interface{}) int

func ToString

func ToString(el interface{}) string

func ToUint

func ToUint(el interface{}) uint64

Types

type PathType

type PathType interface {
	string | int | uint64
}

Jump to

Keyboard shortcuts

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