tags

package module
v0.0.0-...-3eca323 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: BSD-3-Clause Imports: 11 Imported by: 1

README

Tags

This is a small module that reads selected tags from music file. It supports flac, mp3 and m4a files. The tags are returns as a map of strings, with the keys also being strings.

Documentation

Index

Constants

View Source
const AlbumKey = "album"
View Source
const AlbumSortKey = "albumSort"
View Source
const ArtistKey = "artist"
View Source
const ArtistSortKey = "artistSort"
View Source
const BasePathKey = "basePath"
View Source
const DiscNumberKey = "discNumber"
View Source
const DurationKey = "duration"
View Source
const EncodedExtensionKey = "encodedExtension"
View Source
const EncodedSourceKey = "encodedSource" // size and time of source of encoding
View Source
const ExtensionKey = "extension"
View Source
const FlagsKey = "flags"
View Source
const IdKey = "id"

Relative path is relative to the musicDir specified in the configuration file. Base path is the relative path with the extension removed (but with the trailing period retained).

View Source
const IsEncodedKey = "isEncoded"
View Source
const Md5Key = "md5"
View Source
const MimeKey = "mime"
View Source
const RelativePathKey = "relativePath"
View Source
const SizeAndTimeKey = "sizeAndTime"
View Source
const TitleKey = "title"
View Source
const TrackNumberKey = "trackNumber"

Variables

This section is empty.

Functions

This section is empty.

Types

type TagMap

type TagMap map[string]string

func FlacTagsFromFile

func FlacTagsFromFile(path string) TagMap

func GetStandardTagsFromFile

func GetStandardTagsFromFile(path string) TagMap

func GetTagsFromFile

func GetTagsFromFile(path string) TagMap

func M4aTagsFromFile

func M4aTagsFromFile(path string) TagMap

func Mp3TagsFromFile

func Mp3TagsFromFile(path string) TagMap

type TagMapSlice

type TagMapSlice []TagMap

func (TagMapSlice) Len

func (s TagMapSlice) Len() int

functions for sorting a slice of TagMaps

func (TagMapSlice) Less

func (s TagMapSlice) Less(i, j int) bool

func (TagMapSlice) Swap

func (s TagMapSlice) Swap(i, j int)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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