common

package
v0.0.0-...-6056a1e Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2023 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KB = int(1024)
	MB = int(KB * 1024)
	GB = int(MB * 1024)
	TB = int(GB * 1024)
)

Variables

This section is empty.

Functions

func GetAppBasePath

func GetAppBasePath() string

func MatchPatternInVal

func MatchPatternInVal(pattern string, value string) bool

func SizeReadable

func SizeReadable(length int, decimals int) (out string)

Types

type ConfigVideo

type ConfigVideo struct {
	VideoId     string `yaml:"video.in_video_list"`
	NextIterId  string `yaml:"video.next_iteration_file"`
	BackupId    string `yaml:"video.log_id"`
	LogPath     string `yaml:"video.log_path"`
	VideoDlPath string `yaml:"video.video_dl_path"`
}

func GetShareConfig

func GetShareConfig() *ConfigVideo

Jump to

Keyboard shortcuts

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