Add go.mod and fix build
This commit is contained in:
parent
8745fbd0e8
commit
5962266909
8
go.mod
Normal file
8
go.mod
Normal 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
4
go.sum
Normal 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=
|
4
main.go
4
main.go
|
@ -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)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user