Work on media-parsing

This commit is contained in:
2017-09-16 18:03:32 +02:00
parent 1ed0b0b201
commit 73cc5d7f55
3 changed files with 129 additions and 0 deletions

12
util.go Normal file
View File

@ -0,0 +1,12 @@
package main
import (
"strings"
)
func trimSuffix(s, suffix string) string {
if strings.HasSuffix(s, suffix) {
s = s[:len(s)-len(suffix)]
}
return s
}