utils

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Censor

func Censor(in string, pad string, chars int, front bool) string

func NumberMax

func NumberMax[T Number](val1, val2 T) T

func NumberMin

func NumberMin[T Number](val1, val2 T) T

func Truncate

func Truncate(in string, chars, mode int) string

Types

type Number

type Number interface {
	constraints.Integer | constraints.Float
}

type PHUtil

type PHUtil struct {
	Client *phclient.PHClient
	BLog   *bunnlog.BunnyLog
}

func (*PHUtil) GetVideo

func (p *PHUtil) GetVideo(phURL string) (*phproto.PHVideo, error)

Jump to

Keyboard shortcuts

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