Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

go get fails currently #13

Closed
EinPinsel opened this issue Jun 30, 2019 · 4 comments
Closed

go get fails currently #13

EinPinsel opened this issue Jun 30, 2019 · 4 comments

Comments

@EinPinsel
Copy link

While trying to install lazydocker, it fails with the following error: "undefined: strings.ReplaceAll" in

createdBy = strings.ReplaceAll(createdBy, "\t", " ")

@mjarkk
Copy link
Collaborator

mjarkk commented Jun 30, 2019

What is your go version? (go version)

@jesseduffield
Copy link
Owner

@EinPinsel apologies, it turns out that function is only available in go1.12 onwards. I added to the readme that you need that version. I'm not really averse to using a different function than strings.ReplaceAll if it's enough of a hassle for people who are on old go versions. What are your thoughts?

@EinPinsel
Copy link
Author

You got me there - it was go version go1.10.4 linux/amd64. With 1.12 it works. I'm still finding my way around go - and that you can't just get it from the default repo is a bit of missing comfort.

@jesseduffield
Copy link
Owner

@EinPinsel fair enough. I think I'll close this issue and if we get another person who gets stumped on this I'll go and replace the function with something else :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants