debian-mirror-gitlab/workhorse/internal/zipartifacts/entry.go
2021-02-22 17:27:13 +05:30

13 lines
230 B
Go

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
}