So I am hitting an API that returns a JSON response and I am unmarshalling it into a struct like so: package main type ProcessedRecords struct { SLMIndiv
I've been playing with Go modules and I was wondering what the best practice is in terms of the following directory structure: project ├── go
I would like to install/get packages from AWS instance git([email protected]/folder1/folder2/sample.git) to local using "go get" command. Then, this will update i
When deploying this Go-based AWS Lambda project, via AWS console, I receive: { "errorMessage": "fork/exec /var/task/main: exec format error", "errorType": "
Given: a network address A: (172.17.0.0/16) and an IP address from a host B: (172.17.0.2/16) how can we say if B is in A? All addresses are string variables in
I am trying to run golangci-lint tool. I think I might have accidentally upgraded my Golang version from 1.17.2 to 1.17.6 recently and somehow broke golangci-li
On my Windows machine, I have Visual Studio Code installed. To run tests manually, I go in console to projects folder and enter go test main_test.go It works
I have been executing my Golang code on Visual Studio in the terminal for the past few weeks. All of a sudden I am trying to run a program I made, and it does n
I have been executing my Golang code on Visual Studio in the terminal for the past few weeks. All of a sudden I am trying to run a program I made, and it does n
When I run this command ginkgo bootstrap I am getting this error zsh: command not found: ginkgo I have already installed ginkgo using the following command
Is it possible in Golang to loop through an .mp4/.mov video file frame by and modify each frame's pixels? I know this is a complicated answer and there are bet
I'm having some issues with the api I'm developing: sometimes (yes, not always) when I make a request to the golang server from my angular app, it gaves me this
package main import ( "bufio" "fmt" "os" ) func main() { in := bufio.NewReader(os.Stdin) fmt.Println("Please input S: ")
After connecting to a Planetscale database using DSN with the following structure: user:password@tcp(host)/database?tls=true I decided to test it by running a
I have a RDS instance running on AWS and I want to know how to connect to that instance over ssl. From this link Using SSL with mysql database. AWS sets up our
I have a custom gin middleware set up to handle errors but however, it does change to the Content-Type header. package middleware import ( "fmt" "net/
I'm trying to subscribe to an Apache Pulsar topic, and I know for certain the tenant, namespace, and topic all exist because other consumers are able to subscri
strings.Contains(str, substr) N = len(str) M = len(substr) Is Average case = O(N/2 + M) Worst case = O(N - M)?
I tried everything mentioned in below ling https://github.com/microsoft/vscode-go/issues/3072 I updated godef as suggested and installed gopls, but nothing wo
just starting to learn about Go Modules. I have a question on importing local packages inside the same module. The example I am looking at is this repo: https: