Rename the pkg back to what it was.
This commit is contained in:
parent
f4b0673c77
commit
e3bfc5e9c4
|
|
@ -62,23 +62,23 @@ README.html: md2roff
|
||||||
|
|
||||||
build: $(BINARY)
|
build: $(BINARY)
|
||||||
$(BINARY):
|
$(BINARY):
|
||||||
go build -o $(BINARY) -ldflags "-w -s -X github.com/davidnewhall/unifi-poller/unifipoller.Version=$(VERSION)" $(PACKAGE)
|
go build -o $(BINARY) -ldflags "-w -s -X github.com/davidnewhall/unifi-poller/pkg/unifi-poller.Version=$(VERSION)" $(PACKAGE)
|
||||||
|
|
||||||
linux: $(BINARY).linux
|
linux: $(BINARY).linux
|
||||||
$(BINARY).linux:
|
$(BINARY).linux:
|
||||||
# Building linux binary.
|
# Building linux binary.
|
||||||
GOOS=linux go build -o $(BINARY).linux -ldflags "-w -s -X github.com/davidnewhall/unifi-poller/unifipoller.Version=$(VERSION)" $(PACKAGE)
|
GOOS=linux go build -o $(BINARY).linux -ldflags "-w -s -X github.com/davidnewhall/unifi-poller/pkg/unifi-poller.Version=$(VERSION)" $(PACKAGE)
|
||||||
|
|
||||||
macos: $(BINARY).macos
|
macos: $(BINARY).macos
|
||||||
$(BINARY).macos:
|
$(BINARY).macos:
|
||||||
# Building darwin binary.
|
# Building darwin binary.
|
||||||
GOOS=darwin go build -o $(BINARY).macos -ldflags "-w -s -X github.com/davidnewhall/unifi-poller/unifipoller.Version=$(VERSION)" $(PACKAGE)
|
GOOS=darwin go build -o $(BINARY).macos -ldflags "-w -s -X github.com/davidnewhall/unifi-poller/pkg/unifi-poller.Version=$(VERSION)" $(PACKAGE)
|
||||||
|
|
||||||
exe: $(BINARY).exe
|
exe: $(BINARY).exe
|
||||||
windows: $(BINARY).exe
|
windows: $(BINARY).exe
|
||||||
$(BINARY).exe:
|
$(BINARY).exe:
|
||||||
# Building windows binary.
|
# Building windows binary.
|
||||||
GOOS=windows go build -o $(BINARY).exe -ldflags "-w -s -X github.com/davidnewhall/unifi-poller/unifipoller.Version=$(VERSION)" $(PACKAGE)
|
GOOS=windows go build -o $(BINARY).exe -ldflags "-w -s -X github.com/davidnewhall/unifi-poller/pkg/unifi-poller.Version=$(VERSION)" $(PACKAGE)
|
||||||
|
|
||||||
# Packages
|
# Packages
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -85,7 +85,7 @@ means, if you wanted to do something like make telegraf collect your data instea
|
||||||
of UniFi Poller you can achieve that with a little bit of Go code. You could write
|
of UniFi Poller you can achieve that with a little bit of Go code. You could write
|
||||||
a small app that acts as a telegraf input plugin using the [unifi](https://github.com/golift/unifi)
|
a small app that acts as a telegraf input plugin using the [unifi](https://github.com/golift/unifi)
|
||||||
library to grab the data from your controller. As a bonus, all of the code in UniFi Poller is
|
library to grab the data from your controller. As a bonus, all of the code in UniFi Poller is
|
||||||
[also a library](https://godoc.org/github.com/davidnewhall/unifi-poller/unifipoller)
|
[also a library](https://godoc.org/github.com/davidnewhall/unifi-poller/pkg/unifi-poller)
|
||||||
and can be used in other projects.
|
and can be used in other projects.
|
||||||
|
|
||||||
# What now...
|
# What now...
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@ package main
|
||||||
import (
|
import (
|
||||||
"log"
|
"log"
|
||||||
|
|
||||||
"github.com/davidnewhall/unifi-poller/unifipoller"
|
unifipoller "github.com/davidnewhall/unifi-poller/pkg/unifi-poller"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Keep it simple.
|
// Keep it simple.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue