Adds a skeleton for an AlbumCsvReader
This commit is contained in:
21
album_csv_reader.go
Normal file
21
album_csv_reader.go
Normal file
@@ -0,0 +1,21 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"io"
|
||||
)
|
||||
|
||||
// AlbumCsvReader can read Album definition from a csv file
|
||||
type AlbumCsvReader struct {
|
||||
}
|
||||
|
||||
// NewAlbumCsvReader creates a new AlbumCsvReader from a reader
|
||||
func NewAlbumCsvReader(r io.Reader) *AlbumCsvReader {
|
||||
return nil
|
||||
}
|
||||
|
||||
// Read get the next line in the CSV and return an Album or an error,
|
||||
// or io.EOF if stream is closed
|
||||
func (a *AlbumCsvReader) Read() (*Album, error) {
|
||||
return nil, fmt.Errorf("Niot uyet implemented")
|
||||
}
|
||||
Reference in New Issue
Block a user