gitlab-org--gitlab-foss/workhorse/internal/zipartifacts/entry.go

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
}