kovetskiy/zabbixctl

parseDate undefined

tomblich-okta opened this issue · 5 comments

[~]$ go get github.com/kovetskiy/zabbixctl

github.com/kovetskiy/zabbixctl

go/src/github.com/kovetskiy/zabbixctl/handle_maintenances.go:584:22: undefined: parseDate
go/src/github.com/kovetskiy/zabbixctl/handle_maintenances.go:594:21: undefined: parseDate
go/src/github.com/kovetskiy/zabbixctl/handle_triggers.go:251:35: undefined: parseDateTime
go/src/github.com/kovetskiy/zabbixctl/handle_triggers.go:253:36: undefined: parseDateTime

go newbie, needed to setup GOPATH and GOROOT

actually I set GOPATH and same issue. Not sure why handle_maintenance is not finding the parseDate function.
I'm on go go version go1.13.1 darwin/amd64

Did the following:
cp parse_date_linux.go parse_date_darwin.go
go get github.com/simplereach/timeutils
go build
go install

Hi! Thanks for the investigation!

@kovetskiy we should change the build line if you want to support Darwin for example. As we do not need to duplicate X times this file