diff options
author | Martin Czygan <martin.czygan@gmail.com> | 2021-04-15 20:48:37 +0200 |
---|---|---|
committer | Martin Czygan <martin.czygan@gmail.com> | 2021-04-19 20:29:17 +0200 |
commit | ac1e5735e19595f5a03154ba059ff5132547c643 (patch) | |
tree | f399c76fcb0f89aba59add12707793c577f4558d /skate/cluster.go | |
parent | f338c11e6fef8314410fd9ab7ffb8f563d6f4c5e (diff) | |
download | refcat-ac1e5735e19595f5a03154ba059ff5132547c643.tar.gz refcat-ac1e5735e19595f5a03154ba059ff5132547c643.zip |
add skate-derive-key -F for fixed field
Diffstat (limited to 'skate/cluster.go')
-rw-r--r-- | skate/cluster.go | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/skate/cluster.go b/skate/cluster.go index 954d971..bec8154 100644 --- a/skate/cluster.go +++ b/skate/cluster.go @@ -110,15 +110,6 @@ func KeyTitleSandcrawler(p []byte) (ident string, key string, err error) { return ident, sandcrawlerSlugify(key), nil } -// KeySourceIdent extracts the source ident. -func KeySourceIdent(p []byte) (ident string, key string, err error) { - var doc IdentTitleDoc - if err = json.Unmarshal(p, &doc); err != nil { - return doc.Ident, doc.Ident, err - } - return doc.Ident, doc.Ident, nil -} - // sandcrawlerSlugify normalizes a string. func sandcrawlerSlugify(s string) string { slug := strings.ToLower(strings.TrimSpace(s)) |