Add go.mod and fix build

This commit is contained in:
Sandro - 2022-12-11 01:32:27 +01:00
parent 8745fbd0e8
commit 5962266909
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
3 changed files with 15 additions and 3 deletions

8
go.mod Normal file
View File

@ -0,0 +1,8 @@
module github.com/c3d2/telme10
go 1.17
require (
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
github.com/spreadspace/telgo v0.0.0-20170609015223-7277b0d8090e
)

4
go.sum Normal file
View File

@ -0,0 +1,4 @@
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf h1:iW4rZ826su+pqaw19uhpSCzhj44qo35pNgKFGqzDKkU=
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf/go.mod h1:F5haX7vjVVG0kc13fIWeqUViNPyEJxv/OmvnBo0Yme4=
github.com/spreadspace/telgo v0.0.0-20170609015223-7277b0d8090e h1:lhFaE8l5AfSEzH4OW+9BUAo+BuYLe21zuHwWX1YEZHw=
github.com/spreadspace/telgo v0.0.0-20170609015223-7277b0d8090e/go.mod h1:kvvhiAI5nvwI4SZrVH9vRa3MTjkcYm3tElmmh+bYuEI=

View File

@ -145,7 +145,7 @@ func answer(c *telgo.Client, args []string) bool {
c.Sayln(" Great! We'll see you at our hackspace then.") c.Sayln(" Great! We'll see you at our hackspace then.")
c.Sayln("") c.Sayln("")
c.Sayln(" expect Music, sometimes Food, Mate,") c.Sayln(" expect Music, sometimes Food, Mate,")
c.Sayln(" Hacksessions and more") c.Sayln(" Hacksessions and more")
c.Sayln("") c.Sayln("")
c.Sayln(" Find the place:") c.Sayln(" Find the place:")
c.Sayln(" HQ im Zentralwerk, Riesaer Straße 32, 01127 Dresden") c.Sayln(" HQ im Zentralwerk, Riesaer Straße 32, 01127 Dresden")
@ -185,9 +185,9 @@ func answer(c *telgo.Client, args []string) bool {
func main() { func main() {
cmdlist := make(telgo.CmdList) cmdlist := make(telgo.CmdList)
listeners, err := activation.Listeners(true) listeners, err := activation.Listeners()
if err != nil { if err != nil {
fmt.Printf("error while getting socket form systemd", err) fmt.Printf("error while getting socket form systemd: %s", err)
os.Exit(1) os.Exit(1)
} }