jaeles-project / gospider

Gospider - Fast web spider written in Go
MIT License
2.49k stars 304 forks source link

go get installation errors #2

Closed ghost closed 4 years ago

ghost commented 4 years ago
go get -u github.com/jaeles-project/gospider
# github.com/jaeles-project/gospider/core
go/src/github.com/jaeles-project/gospider/core/crawler.go:27:17: unknown field 'MaxConnsPerHost' in struct literal of type http.Transport
go/src/github.com/jaeles-project/gospider/core/crawler.go:183:15: undefined: strings.ReplaceAll
go/src/github.com/jaeles-project/gospider/core/crawler.go:296:20: undefined: strings.ReplaceAll
go/src/github.com/jaeles-project/gospider/core/linkfinder.go:14:12: undefined: strings.ReplaceAll
go/src/github.com/jaeles-project/gospider/core/linkfinder.go:15:12: undefined: strings.ReplaceAll

This appens when downloading directly with go get -u github.com/jaeles-project/gospider

Any advice? Wrong Go version?

OS: Ubuntu 18.04.3 LTS x86_64 Kernel: 4.15.0-76-generic Go Version: go version go1.10.4 linux/amd64

sonbar-cyb3r commented 4 years ago

If you installed the go language in a different way, try the following: $ sudo apt-get install golang

theblackturtle commented 4 years ago

You need to use golang version > 1.13