mirror of
https://github.com/gmemstr/pogo.git
synced 2024-09-20 01:31:09 +01:00
gofmt
This commit is contained in:
parent
33a2755948
commit
577535c897
|
@ -11,6 +11,7 @@ body {
|
||||||
label {
|
label {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
input,textarea {
|
input,textarea {
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"io/ioutil"
|
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
|
"io/ioutil"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
|
@ -12,6 +12,8 @@ type Config struct {
|
||||||
Description string
|
Description string
|
||||||
Image string
|
Image string
|
||||||
PodcastUrl string
|
PodcastUrl string
|
||||||
|
AdminUsername string
|
||||||
|
AdminPassword string
|
||||||
}
|
}
|
||||||
|
|
||||||
func ReadConfig() Config {
|
func ReadConfig() Config {
|
||||||
|
|
2
src/vendor/github.com/gmemstr/feeds/rss.go
generated
vendored
2
src/vendor/github.com/gmemstr/feeds/rss.go
generated
vendored
|
@ -7,8 +7,8 @@ package feeds
|
||||||
import (
|
import (
|
||||||
"encoding/xml"
|
"encoding/xml"
|
||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
// private wrapper around the RssFeed which gives us the <rss>..</rss> xml
|
// private wrapper around the RssFeed which gives us the <rss>..</rss> xml
|
||||||
|
|
|
@ -92,13 +92,6 @@ func AdminHandler(w http.ResponseWriter, r *http.Request) {
|
||||||
|
|
||||||
// Main function that defines routes
|
// Main function that defines routes
|
||||||
func main() {
|
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
|
// Start the watch() function in generate_rss.go, which
|
||||||
// watches for file changes and regenerates the feed
|
// watches for file changes and regenerates the feed
|
||||||
go watch()
|
go watch()
|
||||||
|
|
Loading…
Reference in a new issue