This commit is contained in:
gmemstr 2017-09-25 09:04:29 -07:00
parent 33a2755948
commit 577535c897
5 changed files with 17 additions and 21 deletions

View file

@ -11,6 +11,7 @@ body {
label {
display: block;
}
input,textarea {
margin-bottom: 10px;
padding: 10px;

View file

@ -1,8 +1,8 @@
package main
import (
"io/ioutil"
"encoding/json"
"io/ioutil"
)
type Config struct {
@ -12,6 +12,8 @@ type Config struct {
Description string
Image string
PodcastUrl string
AdminUsername string
AdminPassword string
}
func ReadConfig() Config {

View file

@ -7,8 +7,8 @@ package feeds
import (
"encoding/xml"
"fmt"
"time"
"strconv"
"time"
)
// private wrapper around the RssFeed which gives us the <rss>..</rss> xml

View file

@ -92,13 +92,6 @@ func AdminHandler(w http.ResponseWriter, r *http.Request) {
// Main function that defines routes
func main() {
viper.SetConfigName("config")
viper.AddConfigPath(".")
err := viper.ReadInConfig() // Find and read the config file
if err != nil { // Handle errors reading the config file
panic(fmt.Errorf("Fatal error config file: %s \n", err))
}
// Start the watch() function in generate_rss.go, which
// watches for file changes and regenerates the feed
go watch()