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 }