unstable: initial tags

This commit is contained in:
ston1th 2019-08-20 23:57:43 +02:00
commit b3b62af3a4
28 changed files with 503 additions and 91 deletions

View file

@ -2,7 +2,12 @@
package db
import "crypto/sha256"
import (
"crypto/sha256"
"regexp"
)
var nameRe = regexp.MustCompile("[^a-zA-Z0-9]+")
// Parts taken from strings.TrimPrefix
func hasTrimPrefix(s, prefix string) (string, bool) {