Documentation
¶
Index ¶
- func ClearName(name string) string
- func CompareFilename(first string, second string) float32
- func Decode(filename string) (Gamesinfo, error)
- func Download(url string, name string, suffix string, outputDirectory string, ...) (string, error)
- func Encode(gameinfo *Gamesinfo) ([]byte, error)
- func FillDefaults(inputDirectory, filename string, gameinfo *model.Gameinfo)
- func RemoveExtension(filename string) string
- func RemoveSpecialChars(s string) string
- func ResizeAndWrite(filename string, data []byte, writer io.Writer, maxWidth uint) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareFilename ¶
Code re-used from https://github.com/remeh/go-subtitles to compute the percentage of matching words into the given strings.
func Download ¶
func Download(url string, name string, suffix string, outputDirectory string, resizeWidth uint) (string, error)
Download downlads the given url and saves it to name+prefix file of the current dir. If resizeWidth > 0, some resizing will be done before saving the file.
func FillDefaults ¶
func RemoveExtension ¶
func RemoveSpecialChars ¶
Remove the special chars from the given string and returns the result.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.