jackpal / gateway

A golang library for discovering the address of a LAN gateway.
BSD 3-Clause "New" or "Revised" License
227 stars 69 forks source link

No longer compiles with older Go versions #41

Closed jech closed 11 months ago

jech commented 11 months ago
$ /usr/lib/go-1.19/bin/go build
gateway_parsers.go:14:2: package slices is not in GOROOT (/usr/lib/go-1.19/src/slices)
jackpal commented 11 months ago

This is intentional. I guess you could use an earlier version of the library if for some reason you want to use an older version of golang.

jackpal commented 11 months ago

Reopening. I should change the go.mod file to document this golang version requirement.

jech commented 11 months ago

I guess you could use an earlier version of the library

That's what I'm doing.

if for some reason you want to use an older version of golang.

I'm using the latest version, but I don't want to force my users to do so without good reason.

jackpal commented 11 months ago

Regarding my earlier comment:

Reopening. I should change the go.mod file to document this golang version requirement.

Actually the go.mod file already specifies golang 1.21, so it doesn't need to be updated.

I guess there's nothing more to do on this issue.