Skip to content

Commit

Permalink
camelCase
Browse files Browse the repository at this point in the history
  • Loading branch information
piqoni committed Sep 9, 2023
1 parent aa97694 commit d291d7a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions config.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ func bootstrapConfig() {
}

if viper.IsSet("markdown_dir_path") {
md_dir_path = viper.Get("markdown_dir_path").(string)
mdDirPath = viper.Get("markdown_dir_path").(string)
} else {
md_dir_path = currentDir
mdDirPath = currentDir
}
myFeeds = []RSS{}
feeds := viper.Get("feeds")
Expand Down Expand Up @@ -199,7 +199,7 @@ func bootstrapConfig() {

if !terminal_mode {
markdown_file_name := mdPrefix + currentDate + mdSuffix + ".md"
os.Remove(filepath.Join(md_dir_path, markdown_file_name))
os.Remove(filepath.Join(mdDirPath, markdown_file_name))
}
}

Expand Down
2 changes: 1 addition & 1 deletion feeds_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/mmcdole/gofeed"
)

var md_dir_path string
var mdDirPath string
var mdPrefix, mdSuffix string
var terminal_mode bool = false
var currentDate = time.Now().Format("2006-01-02")
Expand Down
2 changes: 1 addition & 1 deletion markdown_writer.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ type MarkdownWriter struct{}

func (w MarkdownWriter) write(body string) {
markdown_file_name := mdPrefix + currentDate + mdSuffix + ".md"
f, err := os.OpenFile(filepath.Join(md_dir_path, markdown_file_name), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
f, err := os.OpenFile(filepath.Join(mdDirPath, markdown_file_name), os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
if err != nil {
log.Fatal(err)
}
Expand Down

0 comments on commit d291d7a

Please sign in to comment.