14 lines
281 B
Go
14 lines
281 B
Go
package publish
|
|
|
|
import (
|
|
"fmt"
|
|
"strings"
|
|
)
|
|
|
|
func (p *Provider) ReadGpgFile() (string, error) {
|
|
gpgFile, err := ReadFile(p.GpgPubKeyFile)
|
|
if err != nil {
|
|
return "", fmt.Errorf("error reading '%s' file: %w", p.GpgPubKeyFile, err)
|
|
}
|
|
return strings.Join(gpgFile, "\n"), nil
|
|
}
|