Documentation
¶
Index ¶
- Variables
- func CleanName(name string) string
- func Codec(name string) codec.Tag
- func Duration(str string) (time.Duration, error)
- func Filename(filename string) string
- func Group(name string) string
- func Identity(str string) string
- func Language(lang string) (language.Tag, error)
- func Miscellaneous(name string) misc.List
- func PhoneticNumber(num int) string
- func Quality(name string) quality.Tag
- func Source(name string) source.Tag
- func Tags(name string) []string
Constants ¶
This section is empty.
Variables ¶
var Codecs = makeMatcher(codecMap)
Codecs is a list of parseable codecs
var Qualities = makeMatcher(qualityMap)
Qualities list all possible qualities to parse
var Sources = makeMatcher(sourceMap)
Sources lists all prossible sources to parse
Functions ¶
func Duration ¶
Duration takes a textual representation of a duration (e.g. 2h38m) and returns the parsed duration from the time package. An error is returned if the input was invalid (i.e. could not be parsed into a duration)
func Identity ¶ added in v1.0.0
Identity returns a string where special characters are removed. The returned string is suitable for use in an identity string
func Language ¶
Language returns a language taken when given the english word for a language (e.g. english). If the string is not a known language an error is returned
func Miscellaneous ¶ added in v1.0.0
Miscellaneous returns a list of miscellaneous media tags from a string
func PhoneticNumber ¶
PhoneticNumber converts an integer into a human readable string
Types ¶
This section is empty.