Fix warning about mixing value and pointer receivers
This commit is contained in:
parent
e981ee27c0
commit
ebad96b8a4
1 changed files with 7 additions and 7 deletions
|
|
@ -109,13 +109,13 @@ func (t Tags) MbzAlbumComment() string {
|
||||||
|
|
||||||
// File properties
|
// File properties
|
||||||
|
|
||||||
func (t *Tags) Duration() float32 { return float32(t.getFloat("duration")) }
|
func (t Tags) Duration() float32 { return float32(t.getFloat("duration")) }
|
||||||
func (t *Tags) BitRate() int { return t.getInt("bitrate") }
|
func (t Tags) BitRate() int { return t.getInt("bitrate") }
|
||||||
func (t *Tags) Channels() int { return t.getInt("channels") }
|
func (t Tags) Channels() int { return t.getInt("channels") }
|
||||||
func (t *Tags) ModificationTime() time.Time { return t.fileInfo.ModTime() }
|
func (t Tags) ModificationTime() time.Time { return t.fileInfo.ModTime() }
|
||||||
func (t *Tags) Size() int64 { return t.fileInfo.Size() }
|
func (t Tags) Size() int64 { return t.fileInfo.Size() }
|
||||||
func (t *Tags) FilePath() string { return t.filePath }
|
func (t Tags) FilePath() string { return t.filePath }
|
||||||
func (t *Tags) Suffix() string { return strings.ToLower(strings.TrimPrefix(path.Ext(t.filePath), ".")) }
|
func (t Tags) Suffix() string { return strings.ToLower(strings.TrimPrefix(path.Ext(t.filePath), ".")) }
|
||||||
|
|
||||||
func (t Tags) getTags(tagNames ...string) []string {
|
func (t Tags) getTags(tagNames ...string) []string {
|
||||||
for _, tag := range tagNames {
|
for _, tag := range tagNames {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue