Closed fengyc closed 1 year ago
Sorry! It should be fixed in v1.0.10
Tested by successfully building and running on Google colab:
%%bash
add-apt-repository ppa:longsleep/golang-backports -y
apt update
apt install golang-go
mkdir -p hello
cd hello
cat << EOF > main.go
package main
import (
"fmt"
"github.com/jackpal/gateway"
)
func main() {
gateway, err := gateway.DiscoverGateway()
if err != nil {
fmt.Println(err)
} else {
fmt.Println("Gateway:", gateway.String())
}
}
EOF
go mod init example.com/hello
go mod tidy
go run -v main.go
branch: v1.0.9 (v1.0.8 has no error) error: