utils

package
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CMD added in v1.2.0

func CMD(name string, arg ...string) error

Execute a command and print its output to stderr.

func ConvertEmoji

func ConvertEmoji(emojiString string) string

Get the unicode code of an emoji in base 16.

func DeleteFiles

func DeleteFiles(files []string) error

Delete list of files.

func EmojiUnicode

func EmojiUnicode(str string) string

Replace all emojis in a string with their unicode code in base 16.

func FileNameFmt

func FileNameFmt(name string) string

func ToCapitalized

func ToCapitalized(str string) string

Turns first letter of a string to uppercase, capitalizing the string

func YTDL

func YTDL(url string, name string) error

Download YT video from url.

Types

type FileTypes

type FileTypes struct {
	File string
	MIME string
}

func GetFileType

func GetFileType(typeStr string, url string) FileTypes

Jump to

Keyboard shortcuts

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