Skip to content

Commit 5962266

Browse files
Add go.mod and fix build
1 parent 8745fbd commit 5962266

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

go.mod

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
module github.com/c3d2/telme10
2+
3+
go 1.17
4+
5+
require (
6+
github.com/coreos/go-systemd v0.0.0-20191104093116-d3cd4ed1dbcf
7+
github.com/spreadspace/telgo v0.0.0-20170609015223-7277b0d8090e
8+
)

go.sum

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

main.go

+3-3
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ func answer(c *telgo.Client, args []string) bool {
145145
c.Sayln(" Great! We'll see you at our hackspace then.")
146146
c.Sayln("")
147147
c.Sayln(" expect Music, sometimes Food, Mate,")
148-
c.Sayln(" Hacksessions and more")
148+
c.Sayln(" Hacksessions and more")
149149
c.Sayln("")
150150
c.Sayln(" Find the place:")
151151
c.Sayln(" HQ im Zentralwerk, Riesaer Straße 32, 01127 Dresden")
@@ -185,9 +185,9 @@ func answer(c *telgo.Client, args []string) bool {
185185
func main() {
186186
cmdlist := make(telgo.CmdList)
187187

188-
listeners, err := activation.Listeners(true)
188+
listeners, err := activation.Listeners()
189189
if err != nil {
190-
fmt.Printf("error while getting socket form systemd", err)
190+
fmt.Printf("error while getting socket form systemd: %s", err)
191191
os.Exit(1)
192192
}
193193

0 commit comments

Comments
 (0)