kovetskiy / zabbixctl

Most effective way for operating in Zabbix Server
MIT License
139 stars 28 forks source link

parseDate undefined #25

Closed tomblich-okta closed 5 years ago

tomblich-okta commented 5 years ago

[~]$ 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

tomblich-okta commented 5 years ago

go newbie, needed to setup GOPATH and GOROOT

tomblich-okta commented 5 years ago

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

tomblich-okta commented 5 years ago

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

kovetskiy commented 5 years ago

Hi! Thanks for the investigation!

mjtrangoni commented 5 years ago

@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