common

package
v0.0.0-...-e82a829 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	InvalidZingMp3Url     = errors.New("invalid url, the url must be start with https://mp3.zing.vn")
	InvalidSongUrl        = errors.New("invalid song url, must be start with https://mp3.zing.vn/bai-hat")
	InvalidVideoUrl       = errors.New("invalid video url, must be start with https://mp3.zing.vn/video-clip")
	InvalidMp3Quality     = errors.New("invalid mp3 quality, only supported 128 kbps and 320 kbps")
	InvalidMp4Quality     = errors.New("invalid mp4 quality, only supported 360p, 480p, 720p, 1080p")
	InvalidDownloadObject = errors.New("download object must be not empty")
)

Functions

func PromptInteger

func PromptInteger(name string) (int64, error)

func PromptString

func PromptString(name string) (string, error)

func ValidateEmptyInput

func ValidateEmptyInput(input string) error

func ValidateIntegerNumberInput

func ValidateIntegerNumberInput(input 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