Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I am making a package manager for my own programming language for more info.
And I am working on the package manager on VSCode, I want to use json and net/http, then every Go developer should do:
import (
"json"
"net/http"
)
Image:
OK! But after I save the file:
I don't know why is this happening.
You dont use it in the code so it deleted. Read more about goimports
Related
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I am starting to work with GO, and I have no experience with GO.
I would like to know if it is possible to use Go modules in GO 1.10.
Thank you guys.
Given that module support was added in Go 1.11, the answer is "No".
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I am having an issue where a
bash script.sh &> /dev/null/
call is throwing this error. /dev/null does exist and I'm pretty sure it's not supposed to be a directory anyway. A quick google search shows that I'm the only one to ever post this exact error so... that's fun.
It's very simple, simply remove the trailing /
Because /dev/null/ is a not existing directory.
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 2 years ago.
Improve this question
I have a Go module where I am trying to integrate with Google Cloud store. I am using Go v1.14. When I do go get on the cloud datastore, it gives the following error.
go: cloud.google.com/go/datastore upgrade => v1.1.0
go get: cloud.google.com/go/datastore#v1.1.0 requires
google.golang.org/api#v0.17.0 requires
cloud.google.com/go#v0.38.0 requires
golang.org/x/lint#v0.0.0-20190301231843-5614ed5bae6f/go.mod: verifying module: golang.org/x/lint#v0.0.0-20190301231843-5614ed5bae6f/go.mod: malformed record data
Below are the contents of my go.mod file
module <MyNamespace>.com/<moduleName>
go 1.14
require (
github.com/stretchr/testify v1.5.1
)
I don’t really understand the error. How can I understand it?
After struggling for a few hours I discovered that trying the same after clearing local cache worked. I am not getting this exception any more.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
Closed 4 years ago.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Edit the question to include desired behavior, a specific problem or error, and the shortest code necessary to reproduce the problem. This will help others answer the question.
Improve this question
Terminal
When I go to remove the cli from the global packages it doesn't seem to work in the way expected. When I go to update the cli it works, but when I try and create a new project it asks me to install it again. When I check the version I have it tells me I already have a later version than what I tried to install. I have tried a couple different ways to get it to remove the old package but have received nothing but more headaches. Any ideas?
Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers.
This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers.
Closed 7 years ago.
Improve this question
I tried to install MarGo for GoSublime
go get github.com/DisposaBoy/MarGo
However it appears that the path is not correct. Has MarGo moved, or it's not needed anymore for GoSublime ?
Update MarGo is part of GoSublime apparently.
Command margo: github.com/DisposaBoy/GoSublime/src/gosubli.me/margo
GoSublime/src/gosubli.me/margo: github.com/DisposaBoy/GoSublime/tree/master/src/gosubli.me/margo