first commit

This commit is contained in:
Paul Wilde 2021-05-24 19:30:56 +01:00
commit 9749f9eb49
7 changed files with 35 additions and 0 deletions

1
.gitignore vendored Normal file
View file

@ -0,0 +1 @@
datafile

3
datafile.toml Normal file
View file

@ -0,0 +1,3 @@
Name = "Hello Internet"
URL = "http://www.hellointernet.fm/podcast?format=rss"
Dir = "/home/psw/podcasts/HelloInternet"

5
go.mod Normal file
View file

@ -0,0 +1,5 @@
module podcatch
go 1.16
require github.com/pelletier/go-toml v1.9.1

2
go.sum Normal file
View file

@ -0,0 +1,2 @@
github.com/pelletier/go-toml v1.9.1 h1:a6qW1EVNZWH9WGI6CsYdD8WAylkoXBS5yv0XHlh17Tc=
github.com/pelletier/go-toml v1.9.1/go.mod h1:u1nR/EPcESfeI/szUZKdtJ0xRNbUoANCkoOuaOx1Y+c=

7
main.go Normal file
View file

@ -0,0 +1,7 @@
package main
import (
"podcatch/podcatch"
)
func main(){
podcatch.Start()
}

10
podcatch/podcatch.go Normal file
View file

@ -0,0 +1,10 @@
package podcatch
import (
"fmt"
// "podcatch/structs"s
// "github.com/pelletier/go-toml"
)
var Version string = "0.1"
func Start(){
fmt.Printf("Starting PodCatch Version : %s...\r\n", Version )
}

7
structs/structs.go Normal file
View file

@ -0,0 +1,7 @@
package structs
type Podcast struct {
Name string
URL string
Dir string
}