utils

package
v0.0.0-...-78dab50 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB
	MB
	GB
	TB
	PB
	EB
)

Variables

This section is empty.

Functions

func CommonPrefix

func CommonPrefix(first, second string) string

func CompareStrings

func CompareStrings(first, second string) bool

func Format

func Format(b float64) string

func GetMimeType

func GetMimeType(filename string) string

func GetPlayableFiles

func GetPlayableFiles(st state.TorrentStatus) []*state.TorrentFileStat

func GetScheme

func GetScheme(c *gin.Context) string

func NumberPrefix

func NumberPrefix(str string) (int, error)

func ParallelFor

func ParallelFor(begin, end int, fn func(i int))

Types

This section is empty.

Jump to

Keyboard shortcuts

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