felipeluna / twitch-alert

MacOS alert for Twitch.tv
MIT License
0 stars 0 forks source link

reading file from ~/.config doesn't work #1

Open felipeluna opened 6 years ago

felipeluna commented 6 years ago
⋊> ~ twitch-alert yoda                                                  01:42:50
open ./client-id: no such file or directory
panic: runtime error: index out of range

goroutine 1 [running]:
main.main()
    /Users/luna/go/src/github.com/twitch-alert/app.go:65 +0x58b
⋊> ~ cd ~/.config/twitch-alert/                                         01:42:53
⋊> ~/.c/twitch-alert ls                                                 01:43:13
client-id    resources    twitch-alert
felipeluna commented 6 years ago

https://stackoverflow.com/questions/35419263/using-a-configuration-file-with-a-compiled-go-program