Skip to main content
5 votes
1 answer
92 views

Use Petsc-Library in Go

I am trying to use the PETSc (Portable, Extensible Toolkit for Scientific Computation) library in Go over cgo. After the call of PetscInitialize, the program will crash at a random point with the ...
Fabian's user avatar
  • 81
-2 votes
1 answer
83 views

Goroutine not updating map correctly in concurrent Go program

I’m trying to update a map from multiple goroutines, but the results seem inconsistent. Sometimes keys are missing or values are wrong. Here’s my code: package main import ( "fmt" &...
Md.Jewel Mia's user avatar
  • 3,457
0 votes
1 answer
103 views

How can I have a tools-only folder/module?

My project has the following folder structure: . ├── mkdotenv │ ├── core │ │ ├── dotenv_resolve.go │ │ └── dotenv_resolve_test.go │ ├── files │ │ └── files.go │ ├── go.mod │ ├── go....
Dimitrios Desyllas's user avatar
Best practices
0 votes
2 replies
99 views

Memory accounting and quotas for subtasks in golang programs

If I have a server written in golang that processes requests containing user queries, is there any viable method to track and limit the memory used by any given user request? The server process does ...
Craig Ringer's user avatar
Tooling
0 votes
2 replies
67 views

Cache Go dependencies in dev container

I'm trying to build a pre-built dev container (see here). Among others, the app has some Go dependencies specified in go.mod (link to file): module github.com/jovandeginste/workout-tracker/v2 go 1.24....
mu88's user avatar
  • 5,699
2 votes
1 answer
46 views

Purpose of WriteCommitted isolation transaction level (Golang database/sql package)

In Golang, database/sql package, there is a constant such as LevelWriteCommitted for the IsolationLevel type https://pkg.go.dev/database/sql#IsolationLevel What is the purpose of this level? There is ...
Alexandr Ch's user avatar
1 vote
0 answers
58 views

Golang benchmarks involving goroutines show higher than expected allocations when controlling the timer manually

Using go version go1.25.3 darwin/arm64. The below implementation is a simplified version of the actual implementation. type WaitObject struct{ c chan struct{} } func StartNewTestObject(d time....
Ahmad Sameh's user avatar
1 vote
1 answer
63 views

How to display a progression bar on the task bar using Go and Fyne?

I am creating a little software in Golang. I use Fyne as GUI library. It creates long process (it it a file encrypter), so I display a progression bar, as it: go func() { go encryptCore( ...
eliotttak's user avatar
2 votes
0 answers
37 views

How to use ITaskbarList3::SetProgressState and ITaskbarList3::SetProgressValue in Go? [duplicate]

I make a software in Go. Because it made a long process, it displays a progression bar. I show one with a *fyne.widget.ProgressBar, and I would like to add another one directly on the taskbar button ...
eliotttak's user avatar
2 votes
0 answers
34 views

missing EventToken.h while building with webview and fyne-cross

So, after I added webview onto my app I try to compile my app, this error appears: In file included from webview.cc:1: In file included from /go/pkg/mod/github.com/webview/[email protected]...
MrBusAI's user avatar
  • 21