Https://github.com/romshark/yamagiconf
Go Forum
by romshark
10h ago
I was trying to take only the good bits of YAML and restrict the rest. Hope the README is clear enough 1 post - 1 participant Read full topic ..read more
Visit website
Corrupted buffer on high-load
Go Forum
by Ilkhom_Makhmudkhanov
17h ago
Hello, I’m writing simple server to connect to dlms meters and get readings from them, but faceing with corrupted buffer problem on high-load, but everything fine on few connections. It’s all what i’m doing. (Don’t pay attention to the hard code, the idea was to test) package internal import ( "encoding/hex" "fmt" "net" "regexp" "strconv" "strings" "sync" "time" ) type Meter struct { socket *net.TCPConn state State meterSerial string mutex sync.Mutex } func NewMeter(socket *net ..read more
Visit website
Problem with go get: module found but does not contain package
Go Forum
by Marco_H
1d ago
Hello! I am new to the discourse forum. Here’s my question: Trying to get the schema for github.com/open-telemetry/opentelemetry-operator/apis/v1beta1 ❯ go get github.com/open-telemetry/opentelemetry-operator/apis/v1beta1 go: module github.com/open-telemetry/opentelemetry-operator@upgrade found (v1.51.0), but does not contain package github.com/open-telemetry/opentelemetry-operator/apis/v1beta1 I’m not sure what to search for to get around this error. I tried adding @v1.51.0 at the end of the import but still no luck. How do I import this package? Troubleshooting before asking questi ..read more
Visit website
Unexpected select behavior
Go Forum
by Gil_Woodman
1d ago
I have some code that looks like the following . . . for { select { case sumData := <-incomingChannel: doSomeWork(sumData) case <-beatingHeart.C: doHeartBeatStuff() case <-ctx.Done(): return } } The beatingHeart ticker is set for 2 seconds. The code works as expected as long as there is traffic on the incomingChannel. If the system is idle for a few hours, the ticker can be seen to not go off for 15-90 seconds, then return to its expected every 2 seconds. When we use this same select pattern for several goroutines, nearly all of them exhibit this behavior at approximately the same tim ..read more
Visit website
Deploy multiple Go-based AWS Lambda functions
Go Forum
by Heorhii_Robakidze
2d ago
Hi everyone! My name is George. I am new to Golang and this Forum. I came here in search of help from Go-professionals. While taking my first steps in the language, I’ve already met a problem. It is not a problem of the language itself, but rather of its integration with AWS Lambda functions. Currently, I am trying to deploy multiple Go-based Lambda Functions within a single Serverless (AWS CloudFormation) stack. While doing so, AWS requires all the functions to be handled by a root-located (relative to the directory of the code) bootstrap file. This means that all implementations of the funct ..read more
Visit website
How to format a json file the same as gofmt would?
Go Forum
by Willy
2d ago
I have the following json file: { "signup": { "title": "Signup Page", "formName": "Signup Form", "name": "Name" }, "login": { "title": "Login Page", "formName": "Login Form" } } But I want this: { "signup": { "title": "Signup Page", "formName": "Signup Form", "name": "Name", }, "login": { "title": "Login Page", "formName": "Login Form", } } How to achieve that? I was searching and all the available options I found format the same as my first ..read more
Visit website
Example ebitengine-hexboard
Go Forum
by ConValance
3d ago
Hi go-community, i wrote a simple example for a hexboard with ebitengine. the hexastar-pathfinding i put in a local library astarhexlib, cause i found no other hexexamples for ebitengine. https://github.com/ConValance/ebitengine-hexboard 1 post - 1 participant Read full topic ..read more
Visit website
Coverage for deamon
Go Forum
by Yuval
3d ago
Hi, I’m trying to make coverage for a daemon. when building I’m using -cover . is there any way to dump ( like gcov_flush in GCC) or terminate gracefully in order to get coverage? 1 post - 1 participant Read full topic ..read more
Visit website
Reading the session storage data
Go Forum
by hyousef
3d ago
Is there a way in Golang to read the session storage key/value, not the cookie? prefer using standard Golang libraries without the need to use a third party library. 1 post - 1 participant Read full topic ..read more
Visit website
Malformed HTTP version "a POST request from svc_aPOST /proxy HTTP/1.1"
Go Forum
by user24
3d ago
(1) I have an http client, which sends the following request to an http server: http.NewRequest(“POST”, “http://localhost:9090/proxy”, strings.NewReader(“This is a POST request from svc_a”)) (2) http server sends the request object to a function (tcp client) over a go channel, tcp client sends http request as its payload to a tcp server. (3) tcp server reads the tcp payload and creates http request out of it, using http.ReadRequest(x *bufio.Reader) (4) send the response to the tcp client (5) When I am sending two requests from tcp client to tcp server, over the same socket connection, sometime ..read more
Visit website

Follow Go Forum on FeedSpot

Continue with Google
Continue with Apple
OR