initial db refactoring

This commit is contained in:
ston1th 2019-09-09 08:27:51 +02:00
commit e47a874711
5 changed files with 192 additions and 57 deletions

View file

@ -9,3 +9,8 @@ func hasTrimPrefix(s, prefix string) (string, bool) {
}
return s, false
}
// Parts taken from bytes.TrimPrefix
func trimPrefix(b, prefix []byte) string {
return string(b[len(prefix):])
}