internal

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Copyright © 2023 David Aparicio david.aparicio@free.fr

Copyright © 2023 David Aparicio david.aparicio@free.fr

Copyright © 2023 David Aparicio david.aparicio@free.fr

Copyright © 2023 David Aparicio david.aparicio@free.fr

Index

Constants

View Source
const (
	SpeakerRate = 10
)

Variables

View Source
var BuildDate = "Thu Jan  1 01:00:00 CET 1970" // date -r 0 (Mac), date -d @0 (Linux)
View Source
var GitCommit = "54a8d74ea3cf6fdcadfac10ee4a4f2553d4562f6q"
View Source
var Version = "v0.0.1-SNAPSHOT"

Version GitCommit BuiltDate are set at build-time

Functions

func CheckURL

func CheckURL(url, musicFile string, backoff, httpCode int, loop bool, logger *zap.Logger, cmd *cobra.Command)

func ExecuteSuite

func ExecuteSuite(t *testing.T, tests []Test)

func IsEqualString

func IsEqualString(s1, s2 string) bool

func IsNil

func IsNil(object any) bool

func PrintVersion

func PrintVersion(cmd *cobra.Command)

Types

type Test

type Test struct {
	Title          string
	Cmd            *cobra.Command
	Args           []string
	ExpectedStdout string
}

Jump to

Keyboard shortcuts

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