utils

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var CreateApiTokenId = createIdGenerator(32)
View Source
var CreateChapterId = createIdGenerator(16)
View Source
var CreateSerieId = createIdGenerator(8)
View Source
var CreateUserId = createIdGenerator(8)

Functions

func ConvertURL added in v0.5.0

func ConvertURL(c pyrin.Context, path string) string

func CreateResizedImage added in v0.10.0

func CreateResizedImage(src string, dest string, width, height int) error

func Decode added in v0.5.0

func Decode(input interface{}, output interface{}) error

func ExtractNumber added in v0.10.0

func ExtractNumber(s string) int

func ParseAuthHeader

func ParseAuthHeader(authHeader string) string

func Slug added in v0.10.0

func Slug(s string) string

func SymlinkReplace

func SymlinkReplace(src, dst string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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