I am a novice developer and faced such a problem, I can receive a json which in some cases has different data, for example Example 1: { "order
I am a novice developer and faced such a problem, I can receive a json which in some cases has different data, for example Example 1: { "order
I'm currently having issues parsing some numbers starting with 0 in Go. fmt.Println(strconv.ParseInt("0491031", 0, 64)) 0 strconv.ParseInt: parsing "0491031":
this code stacks on aws, but locally works fine, no errors func Connect() { dsn := fmt.Sprintf( "%s:%s@tcp(%s:3306)/%s?charset=utf8&parseTime=True&
Update With the added pthreaded C client, the problem is recreated, indicating the long connection times are part of the TCP protocol, rather than specific impl
Golang use gomod, Some floder/files will be excluded. Such as example/include floder and *_test.go type file. So, What are all the rules?
I have read the similar question related to this problem. It ended up with frustration. I installed consul with docker. I run the following command. docker run
I want to watch Kubernetes pod events for a certain application. I went with NewSharedInformerFactoryWithOptions. I have added appropriate labels selector, But
I have some async calls that runs and I'm setting a timeout for all via the context. ctxWithTimeout, cancel := context.WithTimeout(ctx, getTimeoutDuration()) de
It appears the error is regarding the vendor, i thought I didn't used it for this project but appears like a github package is being imported with a vendor/ pre
How do I do table locking in GORM(go-gorm)? I found a way to do row locking, but could not find a way to do table locking.
when trying to use the VSCode Debugger, I get an error message: "Failed to launch: could not launch process: can not run under Rosetta, check that the installed
I am using the gopacket library, and I read packets from the wire. Right now, all packets I read contain four layers: Link, Network, Transport, and Application
Just started learning generics. I'm making a command processor and I honestly don't know how to word this so I'm just going to show an example problem: var ErrI
I have built a go application using gin and go1.17. I am using go:embed to to serve static content for a SPA app built using react. (trying the approach as sugg
I'm trying to check if an user already have a email. I wrote a function like this : func IsUniqueEmail(body io.ReadCloser) (database.User, error) { connection :
I'm currently working on a social network with Cassandra. I am planning to implement a system of posts and post recommendations in my site. My problem is that I
I am newbie in kafka, i try build a service send mail with attach files. Execution flow: Kafka will receive a message to send mail function get file will downlo
I'm new in Go and unit test. In my project am using Go with gorm and connecting mysql database. my queries is how to unit test my code: My code is below(main.go
I'm creating a CLI tool in Golang, and I'm new to both Golang and making tools for the terminal. I need to execute terminal commands right from my program (spec