diff options
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) |