From cadf89f52311a864e59f0227ebcce28e0051245b Mon Sep 17 00:00:00 2001 From: Martin Czygan Date: Tue, 11 May 2021 00:05:44 +0200 Subject: update docs --- skate/map.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'skate') 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) -- cgit v1.2.3