Browse Source

Move my source from the vendor folder

master
Elis Hirwing 4 years ago
parent
commit
410481644d
Signed by: etu GPG Key ID: D57EFA625C9A925F
  1. 2
      config.go
  2. 11
      main.go
  3. 2
      module-clock.go
  4. 2
      module-sl.go
  5. 2
      module-weather.go

2
vendor/src/statusscreen/Config.go → config.go

@ -1,4 +1,4 @@
package statusscreen
package main
// Config is a struct with my config
type Config struct {

11
main.go

@ -6,16 +6,15 @@ import (
tm "github.com/buger/goterm"
"io/ioutil"
"os"
"statusscreen"
"time"
)
func main() {
config := getConfig("status.toml")
sl := statusscreen.SL{Config: &config}
clock := statusscreen.Clock{Config: &config}
weather := statusscreen.Weather{Config: &config}
sl := SL{Config: &config}
clock := Clock{Config: &config}
weather := Weather{Config: &config}
tm.Clear()
tm.Print("\033[?25l")
@ -45,8 +44,8 @@ func main() {
}
}
func getConfig(configFile string) statusscreen.Config {
var config statusscreen.Config
func getConfig(configFile string) Config {
var config Config
// Read the configfile
file, err := ioutil.ReadFile(configFile)

2
vendor/src/statusscreen/Clock.go → module-clock.go

@ -1,4 +1,4 @@
package statusscreen
package main
import (
"github.com/common-nighthawk/go-figure"

2
vendor/src/statusscreen/SL.go → module-sl.go

@ -1,4 +1,4 @@
package statusscreen
package main
import (
"bytes"

2
vendor/src/statusscreen/Weather.go → module-weather.go

@ -1,4 +1,4 @@
package statusscreen
package main
import (
"io/ioutil"
Loading…
Cancel
Save