"bytes"
"crypto/sha1"
_ "embed"
- "encoding/hex"
+ "encoding/base64"
"encoding/xml"
"errors"
"fmt"
}
func etagString(etag hash.Hash) string {
- return `"` + hex.EncodeToString(etag.Sum(nil)) + `"`
+ return `"` + base64.RawURLEncoding.EncodeToString(etag.Sum(nil)) + `"`
}
func urlParse(what string) *url.URL {
for _, s := range []string{
"SGBLOG",
sgblog.Version,
- cfg.GitPath,
cfg.Branch,
cfg.Title,
cfg.URLPrefix,