diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-05-11 00:05:44 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-05-11 00:05:44 +0200 |
commit | cadf89f52311a864e59f0227ebcce28e0051245b (patch) | |
tree | ae8b887880df3134f3d19c86a88f85be5206cd54 /skate | |
parent | 581a044fcc49144afe04e11d1d4bb662ad595f6b (diff) | |
download | refcat-cadf89f52311a864e59f0227ebcce28e0051245b.tar.gz refcat-cadf89f52311a864e59f0227ebcce28e0051245b.zip |
update docs
Diffstat (limited to 'skate')
-rw-r--r-- | skate/map.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/skate/map.go b/skate/map.go index 4a79c1c..7000f6a 100644 --- a/skate/map.go +++ b/skate/map.go @@ -120,8 +120,8 @@ func Identity(p []byte) ([][]byte, error) { return [][]byte{p}, nil } -// CreateFixedMapper extract the value from a given fixed top level json key. -// Returns a function that maps doc to (v, doc). +// CreateFixedMapper extract the value from a given fixed json key, e.g. +// ".biblio.doi" and the like. Returns a function that maps doc to (value, doc). func CreateFixedMapper(field string) Mapper { f := func(p []byte) ([][]byte, error) { result := gjson.GetBytes(p, field) |