iomz / golemu

A simple LLRP-based RFID reader emulator in Go
MIT License
19 stars 9 forks source link

gologir.go:202: undefined: http.StatusAlreadyReported #27

Closed luisyng closed 5 years ago

luisyng commented 7 years ago

Hi, thank you very much for your work.

I am trying to install the emulator in Ubuntu. I have successfully installed Go, but when I try to execute:

$ go install

I get:

# _/home/luis/go/gologir
./gologir.go:202: undefined: http.StatusAlreadyReported

Do you know what could be wrong? Thank you very much.

iomz commented 7 years ago

Hello! Thank you for trying this out!

Looks like the dependency is missing. Try:

$ cd gologir
$ go get ./...

or

$ go get github.com/iomz/gologir

to install all the packages including gologir into your $GOPATH.

ktown007 commented 7 years ago

I uninstalled the ubuntu package and installed the current build from golang.org/dl

Pablini commented 6 years ago

Same problem in Ubuntu LTS 16.04: ppratsc@QUARKS-V:~$ go get github.com/iomz/gologir

github.com/iomz/gologir

gopath/src/github.com/iomz/gologir/golemu.go:218: undefined: http.StatusAlreadyReported

iomz commented 5 years ago

This issue was related to go version. Closing it as fixing the web API. See more in #30