Files
2024-05-07 06:10:18 +00:00

15 lines
314 B
Go

package zipartifacts
import (
"encoding/base64"
)
// DecodeFileEntry decodes a base64-encoded string and returns the decoded content.
func DecodeFileEntry(entry string) (string, error) {
decoded, err := base64.StdEncoding.DecodeString(entry)
if err != nil {
return "", err
}
return string(decoded), nil
}