util

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2023 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BigEndianUint16

func BigEndianUint16(v uint16) []byte

func BigEndianUint32

func BigEndianUint32(v uint32) []byte

func BigEndianUint64

func BigEndianUint64(v uint64) []byte

func DmMode2Desc

func DmMode2Desc(mode int) string

DmMode2Desc returns the description of danmaku mode.

func FileExists

func FileExists(file string) bool

FileExists checks if a file exists

func GetBetweenString

func GetBetweenString(s, start, end string) string

GetBetweenString returns the string between the start and end strings.

func GetCookie

func GetCookie(cookies string, key string) string

func IF

func IF(f bool, a interface{}, b interface{}) interface{}

func MemoryHuman

func MemoryHuman(m uint64) string

MemoryHuman ize converts bytes to human readable format

func MustGetSocks5

func MustGetSocks5(host string, port int, user, password string) proxy.Dialer

MustGetSocks5 returns a socks5 proxy.

func Plat2Desc

func Plat2Desc(plat string) string

func PutBytes

func PutBytes(bytes ...[]byte) []byte

func Qn2Desc

func Qn2Desc(qn int) string

Qn2Desc returns the description of quality.

func RandLetters

func RandLetters(n int) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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