You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
35 lines
622 B
35 lines
622 B
3 years ago
|
package v2
|
||
|
|
||
|
// type ID3v2Tag struct {
|
||
3 years ago
|
// Header Header
|
||
|
// Frames []Frame
|
||
3 years ago
|
// }
|
||
|
|
||
|
// type V2TagReader interface {
|
||
|
// ReadFrames(io.ReadSeeker) ([]*Frame, error)
|
||
|
// GetHeader(io.ReadSeeker) (*Header, error)
|
||
|
// HasPadding(io.ReadSeeker) (bool, error)
|
||
|
// }
|
||
|
|
||
|
// type V2TagWriter interface {
|
||
|
// Write(*os.File) error
|
||
|
// }
|
||
|
|
||
|
// func Get(f *os.File) (*ID3v2Tag, error) {
|
||
|
// var tag ID3v2Tag
|
||
|
|
||
|
// header, err := GetHeader(f)
|
||
|
// if err != nil {
|
||
|
// return nil, err
|
||
|
// }
|
||
|
// frames, err := GetFrames(f)
|
||
|
// if err != nil {
|
||
|
// return nil, err
|
||
|
// }
|
||
|
|
||
|
// tag.Header = header
|
||
|
// tag.Frames = frames
|
||
|
|
||
|
// return &tag, nil
|
||
|
// }
|