photoprism-client-go/vendor/github.com/google/open-location-code/go
Kris Nóva e4323b6047 Working auth and photo json endpoint
Signed-off-by: Kris Nóva <kris@nivenly.com>
2021-02-09 11:17:06 -08:00
..
.gitignore Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
LICENSE Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
README.md Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
decode.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
encode.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
go.mod Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
go.sum Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
olc.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
olc_gofuzz.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00
shorten.go Working auth and photo json endpoint 2021-02-09 11:17:06 -08:00

README.md

GoDoc

Formatting

Go files must be formatted with gofmt, and the tests will check that this is the case. If the files are not correctly formatted, the tests will fail.

You can format your files by running:

gofmt -w -s .

Testing

Run the unit tests from within the go directory with:

go test . -v

To also run the benchmark tests, run:

go test -bench=. . -v

Test with Go-Fuzz

go get github.com/dvyukov/go-fuzz/...

go generate github.com/google/open-location-code/go

go-fuzz-build github.com/google/open-location-code/go
go-fuzz -bin=./olc-fuzz.zip -workdir=/tmp/olc-fuzz

Install

go get github.com/google/open-location-code/go