Skip to content

Commit

Permalink
don't export method
Browse files Browse the repository at this point in the history
  • Loading branch information
Danny Ranson committed Aug 8, 2024
1 parent 32d2d05 commit bb5bf50
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions internal/campaign/campaign.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ func CreateInitialFiles(campaignName string) error {
"repos.txt": reposTemplate,
}
for filename, templateFile := range files {
err := ApplyTemplate(filepath.Join(campaignName, filename), templateFile, data)
err := applyTemplate(filepath.Join(campaignName, filename), templateFile, data)
if err != nil {
return err
}
Expand All @@ -211,7 +211,7 @@ func CreateInitialFiles(campaignName string) error {
}

// Applies a given template and data to produce a file with the outputFilename
func ApplyTemplate(outputFilename string, templateContent string, data interface{}) error {
func applyTemplate(outputFilename string, templateContent string, data interface{}) error {
file, err := os.Create(outputFilename)
if err != nil {
return fmt.Errorf("unable to open file for output: %w", err)
Expand All @@ -237,7 +237,7 @@ func ApplyReadMeTemplate(filename string, dirName string) error {
data := TemplateVariables{
CampaignName: dirName,
}
err := ApplyTemplate(filename, readmeTemplate, data)
err := applyTemplate(filename, readmeTemplate, data)
if err != nil {
return err
}
Expand Down

0 comments on commit bb5bf50

Please sign in to comment.