diff options
Diffstat (limited to 'skate')
-rw-r--r-- | skate/cmd/skate-verify/main.go | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/skate/cmd/skate-verify/main.go b/skate/cmd/skate-verify/main.go index ab198fd..1288404 100644 --- a/skate/cmd/skate-verify/main.go +++ b/skate/cmd/skate-verify/main.go @@ -35,11 +35,11 @@ var ( // XXX: This should be cleanup up soon. matchResults = map[string]skate.MatchResult{ - "doi": skate.MatchResult{skate.StatusExact, skate.ReasonDOI}, - "pmid": skate.MatchResult{skate.StatusExact, skate.ReasonPMID}, - "pmcid": skate.MatchResult{skate.StatusExact, skate.ReasonPMCID}, - "arxiv": skate.MatchResult{skate.StatusExact, skate.ReasonArxiv}, - "unknown": skate.MatchResult{skate.StatusUnknown, skate.ReasonUnknown}, + "doi": skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonDOI}, + "pmid": skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonPMID}, + "pmcid": skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonPMCID}, + "arxiv": skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonArxiv}, + "unknown": skate.MatchResult{Status: skate.StatusUnknown, Reason: skate.ReasonUnknown}, } ) @@ -124,7 +124,8 @@ func main() { } defer f.Close() defer g.Close() - if err = skate.ZippyFixedWiki(f, g, skate.MatchResult{skate.StatusExact, skate.ReasonDOI}, "wiki", bw); err != nil { + mr := skate.MatchResult{Status: skate.StatusExact, Reason: skate.ReasonDOI} + if err = skate.ZippyFixedWiki(f, g, mr, "wiki", bw); err != nil { log.Fatal(err) } default: |