stapelberg / coronaqr

Go decoder and verifier for EU Digital COVID Certificate (EUDCC) QR code data
Apache License 2.0
169 stars 15 forks source link

How to use it? #14

Closed iliakan closed 2 years ago

iliakan commented 2 years ago

I'm newbie to Go.

What should I install/setup before using instructions?

P.S. apt-get install golang and adding $GOPATH/$GOLANG wasn't enough.

root:~#  go get -u github.com/stapelberg/coronaqr/cmd/coronadecode
package context: unrecognized import path "context" (import path does not begin with hostname)
package flag: unrecognized import path "flag" (import path does not begin with hostname)
package fmt: unrecognized import path "fmt" (import path does not begin with hostname)
...
stapelberg commented 2 years ago

I suspect your version of Go is too old. Please follow https://go.dev/dl/ first.

iliakan commented 2 years ago

go version go1.7.4 linux/amd64 too old?

stapelberg commented 2 years ago

Definitely! That’s from 2016! https://en.wikipedia.org/wiki/Go_(programming_language)#Version_history

Use the current major version of Go (1.17).

iliakan commented 2 years ago

Well, that's Debian 9 version ;)

Did you try on Mac?

iliakan commented 2 years ago

I just tried it on Mac.

go version go1.17.5 darwin/amd64

Seems to work ;)