debian-mirror-gitlab/workhorse/internal/zipartifacts/entry.go

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

14 lines
230 B
Go
Raw Normal View History

2021-02-22 17:27:13 +05:30
package zipartifacts
import (
"encoding/base64"
)
func DecodeFileEntry(entry string) (string, error) {
decoded, err := base64.StdEncoding.DecodeString(entry)
if err != nil {
return "", err
}
return string(decoded), nil
}