util

package
v0.2.3 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2024 License: MIT, MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorPointerTarget   = errors.New("target must be a pointer")
	ErrorUnsupportedType = errors.New("unsupported type")
)

Functions

func AssertStringToType

func AssertStringToType[T model.Assert](v string) T

func ConvertSlice

func ConvertSlice(src []string, t interface{}) error

func ConvertValue

func ConvertValue(src string, t interface{}) error

func EscapeString

func EscapeString(value string) string

func GetFilenameSuffix

func GetFilenameSuffix(filename string) string

func IsRequestMultipart

func IsRequestMultipart(req *http.Request) bool

func JoinPath added in v0.1.1

func JoinPath(basePath string, path string) string

func MustConvertSlice

func MustConvertSlice(src []string, t interface{})

func MustConvertValue

func MustConvertValue(src string, t interface{})

func MustJoinPath added in v0.1.1

func MustJoinPath(basePath string, path string) string

Types

This section is empty.

Directories

Path Synopsis
constant

Jump to

Keyboard shortcuts

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