Documentation ¶
Index ¶
- Constants
- func Decode(text string) ([]byte, error)
- func Decrypt(key []byte, cryptoText string) (string, error)
- func Encode(text string) string
- func Encrypt(key []byte, text string) string
- func ExecuteCmd(name string, arg ...string) (string, error)
- func FileExists(file string) bool
- func FormatMinutesSeconds(minutes, seconds int) string
- func FromURLBase64(text string) ([]byte, error)
- func GenerateRandom(length int) []byte
- func GetOutboundIP() net.IP
- func InterfaceToString(val interface{}) string
- func MkDir(dir string) error
- func Panic(err error)
- func ReverseStringSlice(s []string)
- func StringArrayContains(array []string, item string) bool
- func StringIsEmpty(data string) bool
- func ToURLBase64(buf []byte) string
Constants ¶
View Source
const ( StatusNoError = 0 StatusInvalid = 1 StatusNameShort = 2 StatusPasswordShort = 3 StatusPasswordInvalid = 4 StatusNameInvalid = 5 StatusAddUserFailed = 6 StatusUserAlreadyExists = 7 StatusInvalidPassword = 8 StatusPasswordLong = 9 StatusNameLong = 10 StatusYoutubeFetchFailure = 11 StatusYoutubeSearchFailure = 12 StatusYoutubeGetFailure = 13 StatusYoutubeGetInfoFailure = 14 StatusYoutubeGetChartsFailure = 15 StatusPlaylistIdAlreadyExists = 16 StatusAddHistoryFailed = 17 )
View Source
const ( LOG_DIR = "log" LOG_PREFIX = "log" LOG_EXTENSION = ".txt" FILES = "files" DATABASE = FILES + "/sqldata" DATADB = DATABASE + "/data.db" YOUTUBE_DIR = FILES + "/youtube" YOUTUBE_DL = "youtube-dl" FFMPEG = "ffmpeg" )
Variables ¶
This section is empty.
Functions ¶
func FileExists ¶
func FormatMinutesSeconds ¶
func FromURLBase64 ¶
func GenerateRandom ¶
func GetOutboundIP ¶
func InterfaceToString ¶
func InterfaceToString(val interface{}) string
func ReverseStringSlice ¶
func ReverseStringSlice(s []string)
func StringArrayContains ¶
func StringIsEmpty ¶
func ToURLBase64 ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.