Tidy up visibility of internal-only types.

This commit is contained in:
David Howden
2015-06-28 12:40:49 +10:00
parent 6af476df94
commit cc382c48de
3 changed files with 25 additions and 25 deletions
+12 -12
View File
@@ -10,18 +10,18 @@ import (
"os"
)
// BlockType is a type which represents an enumeration of valid FLAC blocks
type BlockType byte
// blockType is a type which represents an enumeration of valid FLAC blocks
type blockType byte
// FLAC block types.
const (
StreamInfoBlock BlockType = 0
PaddingBlock = 1
ApplicationBlock = 2
SeektableBlock = 3
VorbisCommentBlock = 4 // Supported
CueSheetBlock = 5
PictureBlock = 6 // Supported
streamInfoBlock blockType = 0
paddingBlock = 1
applicationBlock = 2
seektableBlock = 3
vorbisCommentBlock = 4 // Supported
cueSheetBlock = 5
pictureBlock = 6 // Supported
)
// ReadFLACTags reads FLAC metadata from the io.ReadSeeker, returning the resulting
@@ -72,11 +72,11 @@ func (m *metadataFLAC) readFLACMetadataBlock(r io.ReadSeeker) (last bool, err er
return
}
switch BlockType(blockHeader[0]) {
case VorbisCommentBlock:
switch blockType(blockHeader[0]) {
case vorbisCommentBlock:
err = m.readVorbisComment(r)
case PictureBlock:
case pictureBlock:
err = m.readPictureBlock(r)
default: