aboutsummaryrefslogtreecommitdiffstats
path: root/skate/cmd
diff options
context:
space:
mode:
authorMartin Czygan <martin.czygan@gmail.com>2021-07-21 23:44:22 +0200
committerMartin Czygan <martin.czygan@gmail.com>2021-07-21 23:44:22 +0200
commit26ea24147e19ba0f04e47b5f128dd924799ea320 (patch)
tree67cf9fb8e4c04ca4893a6d8554a568a18a41b9c9 /skate/cmd
parent16898dedf28a3db7ecebf76f377a3d0d8cd45c7a (diff)
downloadrefcat-26ea24147e19ba0f04e47b5f128dd924799ea320.tar.gz
refcat-26ea24147e19ba0f04e47b5f128dd924799ea320.zip
xio: improve naming
Diffstat (limited to 'skate/cmd')
-rw-r--r--skate/cmd/skate-conv/main.go7
1 files changed, 6 insertions, 1 deletions
diff --git a/skate/cmd/skate-conv/main.go b/skate/cmd/skate-conv/main.go
index 423c394..972a7d0 100644
--- a/skate/cmd/skate-conv/main.go
+++ b/skate/cmd/skate-conv/main.go
@@ -47,7 +47,12 @@ func main() {
f = openLibraryEditionToRelease
if *extraOpenLibraryAuthorMapping != "" {
log.Printf("loading author mapping from %v ...", *extraOpenLibraryAuthorMapping)
- m, err := xio.TabsToMapFile(*extraOpenLibraryAuthorMapping, "\t", 1, 2)
+ f, err := os.Open(*extraOpenLibraryAuthorMapping)
+ if err != nil {
+ log.Fatal(err)
+ }
+ defer f.Close()
+ m, err := xio.MapFromTabular(f, "\t", 1, 2)
if err != nil {
log.Fatal(err)
}