How can I append another value to an existing value of a go environment variable? If CGO_CXXFLAGS has the value "-I/blah/blah" Since the following doesn't work
I have been trying to solve this for days. In Go code I am looking to take a ssh-rsa public key like: ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQDGnnY4LuLq7Bs7VnFk2V
In my Go API I'm trying to use json decode to parse the following json. {"contract_id":0,"date_established":"2022-04-03T00:00:00.000","expiry_date":null,"extens
---UPDATE I send the code to a friend who then tested it on his pc. The output was as it's supposed to be. This means the issue is not code related but somethin
I am trying to containerize my application build, though, when running the build that uses bazel with bazel-gazelle inside a container I will get this error: $
I have the following function waitForInput that listens for TCP input, after the connection has been created and that one has been assigned to the client struct
I am new to Golang and I did set up a "hello world!" test message for a Golang API on our VPS. It works just fine at http://www.example.com:8080/hello. I would
am currently working with timestamps and I would like to store in a variable the monotonic clock reading section. Let's say that I have this: 2022-03-31 10:20:2
I am leveraging Avi Go SDK to fetch avi healthmonitor configuration as below var healthmonitormap map[string]interface{} err = aviClient.AviSession.GetObjectByN
I am using websocket with client nodejs and server golang (net library) via tcp. I am read data sent from client but many special chars. Some one can help me ab
func main() { i1 := 1 A1(&i1) } func A1(i1 *int) *int { return i1 } And the result of escape analysis is ./main.go:18:9: parameter i1 leak
I'm trying to write simple JWT implementation with these functionalities: Generating token using HMAC Validating token (if signature is correct or exp is not ti
I am trying to convert Protobuf *_struct.Struct to map[string]interface{} what is the right way to do it? func convertToMap(input *_struct.Str
Problem I need to unmarshal XML from an 3rd party application to my GO struct. what i tried I created structs and am able to generate identical XML from my code
I've been learning Go in Visual Studio Code and wasn't having any problems until I tried to create a mod file for the first time this morning. Now, whenever I t
Step 1. I generated RSA key pairs for Alice and Bob, respectively, and encrypted a message for Alice using Alice's public key. Step 2. I multiplied the public
I need to create a nodes for a linked list and return the head inside a Function. Definition for each node: type ListNode struct { Val int Next *ListNo
I made a web app in Go which search for a query in a mysql database. Everything works fine, but I do not know how to obtain following: if there is no result in
I try to create a mock of a file with an interface imported from another file. I have try with `aux_files` and `imports` but I did non succeed to have a correc
My library is github.com/influxdata/influxdb1-client/v2,and I need to use it to operate the VictoriaMetrics, For example, I need to make the following qu