From 9749f9eb49ea292278457870dae7509df5240b69 Mon Sep 17 00:00:00 2001 From: Paul Wilde Date: Mon, 24 May 2021 19:30:56 +0100 Subject: [PATCH] first commit --- .gitignore | 1 + datafile.toml | 3 +++ go.mod | 5 +++++ go.sum | 2 ++ main.go | 7 +++++++ podcatch/podcatch.go | 10 ++++++++++ structs/structs.go | 7 +++++++ 7 files changed, 35 insertions(+) create mode 100644 .gitignore create mode 100644 datafile.toml create mode 100644 go.mod create mode 100644 go.sum create mode 100644 main.go create mode 100644 podcatch/podcatch.go create mode 100644 structs/structs.go diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..258f27a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +datafile diff --git a/datafile.toml b/datafile.toml new file mode 100644 index 0000000..5a676d9 --- /dev/null +++ b/datafile.toml @@ -0,0 +1,3 @@ +Name = "Hello Internet" +URL = "http://www.hellointernet.fm/podcast?format=rss" +Dir = "/home/psw/podcasts/HelloInternet" diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..e9af507 --- /dev/null +++ b/go.mod @@ -0,0 +1,5 @@ +module podcatch + +go 1.16 + +require github.com/pelletier/go-toml v1.9.1 diff --git a/go.sum b/go.sum new file mode 100644 index 0000000..a8985e1 --- /dev/null +++ b/go.sum @@ -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= diff --git a/main.go b/main.go new file mode 100644 index 0000000..3ba2fc5 --- /dev/null +++ b/main.go @@ -0,0 +1,7 @@ +package main +import ( + "podcatch/podcatch" +) +func main(){ + podcatch.Start() +} diff --git a/podcatch/podcatch.go b/podcatch/podcatch.go new file mode 100644 index 0000000..6119e8c --- /dev/null +++ b/podcatch/podcatch.go @@ -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 ) +} diff --git a/structs/structs.go b/structs/structs.go new file mode 100644 index 0000000..54e72cc --- /dev/null +++ b/structs/structs.go @@ -0,0 +1,7 @@ +package structs + +type Podcast struct { + Name string + URL string + Dir string +}