utils

package
v0.0.0-...-cd88461 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PrepareString

func PrepareString(value string) string

PrepareString removes special chars, words between brackets, alternative text and covert the string to lower case

func RemoveBracketsContent

func RemoveBracketsContent(value string) string

RemoveBracketsContent returns the string without brackets and without the content inside of them

func ToSnakeCase

func ToSnakeCase(value string) string

ToSnakeCase returns the string in snake case format

func TrimAllSpaces

func TrimAllSpaces(value string) string

TrimAllSpaces returns the string passed as argument without spaces and in lower key

func UniqueArtistsSlice

func UniqueArtistsSlice(artistSlice []*model.Artist) []*model.Artist

Types

This section is empty.

Jump to

Keyboard shortcuts

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