tagfile

package
v1.3.4 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Tags = []TagStruct{
	{"artist", "a", "Artist", "set artist", taglib.Artist},
	{"title", "t", "Title", "set title", taglib.Title},
	{"album", "A", "Album", "set album", taglib.Album},
	{"year", "y", "Year", "set year", taglib.Year},
	{"track", "T", "Track", "set track", taglib.Track},
	{"comment", "c", "Comments", "set comments", taglib.Comments},
}

Tags : helper list for tags supported

Functions

This section is empty.

Types

type TagFile

type TagFile struct {
	// contains filtered or unexported fields
}

TagFile : struct holding filename and the taglib.File handle

func Open

func Open(path string) *TagFile

Open : open a taglib FILE

func (*TagFile) Close

func (fh *TagFile) Close()

Close : close taglib FILE

func (*TagFile) Get

func (fh *TagFile) Get(tag *TagStruct) string

Get : get tag

func (*TagFile) Save

func (fh *TagFile) Save()

Save : save taglib FILE

func (*TagFile) Set

func (fh *TagFile) Set(tag *TagStruct, val string)

Set : get tag

type TagStruct

type TagStruct struct {
	Ln string // flag long name
	Sn string // flag short name
	Dn string // tag display name for output
	Ms string // flag message
	// contains filtered or unexported fields
}

TagStruct : hold attributes of a tag

Jump to

Keyboard shortcuts

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