menu

Recent questions tagged go

2 votes
1 answer
Is it difficult to connect a server with golang sockets? There is a monolith, which is slightly split into 3 servers, base, sockets and front + back. Service is growing, a lot falls on sockets as constant communication, the a ...
by hellohelpme
asked Sep 24, 2021
2 votes
1 answer
[Updated] Is protobuf + go + grpc still alive? Colleagues, is the bundle alive? Today I can not find a single tutorial that works as expected: go to grpc - you get to derredpackages, go to protobuf - code generators ...
by dasha_programmist
asked Sep 24, 2021
1 vote
1 answer
How to get individual elements of a string with a regular? I get a set of strings of the following form by a regular expression from html /reports/schedule/Group/14779_1_26102020_08112020.pdf groupRegexp := regexp.MustCompile ...
by kr_ilya
asked Sep 20, 2021
1 vote
2 answers
Is it worth using fasthttp to create a json API library? Hello, I just finished writing the JSON API library for one toy. First, I wrote a client that makes requests via net/http. In the structure field of my client was standa ...
by Mikkkch
asked Sep 20, 2021
1 vote
1 answer
How do I execute the cmd command from go? There is a team. D:\1c\8.3.9.2170\bin\1cv8.exe CREATEINFOBASE File="D:\_lang\go\gopath\src\peregruzki_assistant\local\cl1\db" /AddInList"cl1" /UseTemplate"D:\_lang\go\g ...
by blajlhimik
asked Sep 20, 2021
1 vote
3 answers
How to get rid of the error too many open files? Write a powerful parser in Golang. Recently errors "dial tcp: lookup localhost: too many open files" started to roll up Ulimit increased, connections in go all closed, ...
by sasnnick
asked Sep 19, 2021
1 vote
1 answer
How do I compare times in golang? I need to figure out if it is later than 10:00 UTC or not in golang. How do I do that? ...
by impressive17
asked Sep 18, 2021
1 vote
1 answer
How do I disable auto-formatting golang in vscode? Looked through not a few sites and guides on how to disable autoformatting Go files, but nothing has helped, and in the Russian segment of the question is not particular ...
by username_991
asked Sep 18, 2021
1 vote
1 answer
3 votes
1 answer
Which connection pool should I use? The hightload project uses fasthttp. Everything is fine, but it has no connection pool (not to be confused with sync.Pool) which leads to the following problem: when the ...
by Aco
asked Sep 16, 2021
1 vote
1 answer
In golang, is it only possible to import packages from github? 1) Is go get tied to github? 2) Is it possible not to specify a link to the github project when importing, but to put this module in the system and import by name, becau ...
by cursor_pointer
asked Apr 4, 2021
1 vote
1 answer
How to distinguish in JS different variants of the response Go-server (to one AJAX-request)? How to distinguish in JS in the browser response options server (in a single AJAX-request), and put them in the appropriate place-tag HTML-document? HTML: <form> ...
by VadimRublev
asked Apr 4, 2021
1 vote
1 answer
How to execute a DLL file using Golang? I made a DLL file using go build -o testdll.dll -buildmode=c-shared dllGo.go dllGo.go: package mainimport ( "fmt" "os")func TestCalc(a, b int) int { return a ...
by amaterasu0
asked Apr 4, 2021
2 votes
1 answer
How to make a post request with base64 image in Golang? I have a normal jpg image at the root of the project. I need to make a post request with this image in base64 to a certain url. In the body of the request should be some ...
by impressive17
asked Apr 2, 2021
1 vote
1 answer
Does the use of bindings affect performance? Will performance be lower when using Go with Qt bindings than when using Java with JavaFx for example? ...
by MonAkka
asked Apr 2, 2021
2 votes
3 answers
How to use context when working with the API using fasthttp? Hello, I'm currently writing a little lib on working with API and saw that to work with the api's it is required to put context.Context in my code for the reason that it ...
by Mikkkch
asked Apr 2, 2021
1 vote
1 answer
How do I add a Windows 10 registry entry in Golang? What are the ways to add an entry to the Windows 10 registry in Golang? ...
by HPositron
asked Apr 2, 2021
1 vote
1 answer
How does Unmarshal determine which structure field to dump the data from the json into? There are several entries: type Masteries ChampionMasterytype ChampionMastery struct { ChampionID int ChampionLevel int Champ ...
by Mikkkch
asked Mar 29, 2021
1 vote
1 answer
How do I find the most frequent word without considering word forms? Assumption: there is a word "deer", I see if it is in map (by getting the keys and looking for a substring in the string. If the number of matching characters >3, for ...
by lucifer_jr
asked Mar 29, 2021
1 vote
1 answer
How do I set up gin-jwt in golang? I can't figure out gin-jwt in any way, trying to rewrite an example from a hub, only logging into an existing account, how to implement it all correctly? Ideally with an ...
by JkLKot
asked Mar 29, 2021