aboutsummaryrefslogtreecommitdiffstats
path: root/skate/verify.go
diff options
context:
space:
mode:
Diffstat (limited to 'skate/verify.go')
-rw-r--r--skate/verify.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/skate/verify.go b/skate/verify.go
index cfe31ec..40ee4e2 100644
--- a/skate/verify.go
+++ b/skate/verify.go
@@ -123,8 +123,8 @@ var (
PatPages = regexp.MustCompile(`([0-9]{1,})-([0-9]{1,})`)
)
-// jsonMarshalLine marshals a value as JSON and adds a newline.
-func jsonMarshalLine(v interface{}) ([]byte, error) {
+// JsonMarshalLine marshals a value as JSON and adds a newline.
+func JsonMarshalLine(v interface{}) ([]byte, error) {
b, err := json.Marshal(v)
if err != nil {
return nil, err
@@ -230,7 +230,7 @@ func RefClusterToBiblioRef(p []byte) ([]byte, error) {
continue // Assume we already have the DOI matches.
}
br = generateBiblioRef(re, pivot, result, "fuzzy")
- return jsonMarshalLine(br)
+ return JsonMarshalLine(br)
default:
continue
}