Skip to main content
1 vote
0 answers
22 views

Why can't Go, html/template, and Fiber collaborate to compose templates?

I want to render a template using a base template and one of two partial templates, based on the context. Something like: Patial A Base Template |────...
Rodrigo Silveira's user avatar
1 vote
0 answers
23 views

Beego ORM `rel(fk)` field causes panic in `getColumnTyp()` when running RunSyncdb

I am trying to define a foreign key field in a Beego ORM model, but the application crashes during RunSyncdb with the following panic: panic: runtime error: invalid memory address or nil pointer ...
Lomo zhu's user avatar
-3 votes
0 answers
48 views

Using golang's k8s.io appsv1 api to get the ReadyReplicas for a deployment does not agree with kubectl

In a retry/backoff loop, I check, using https://pkg.go.dev/k8s.io/api/apps/v1#Deployment: ready := client.AppsV1().Deployments(f.Namespace).Get(context.TODO(), dep.GetName(), metav1.GetOptions{})....
Resisty's user avatar
  • 128
0 votes
0 answers
49 views

Unable to upgrade knative/client from 0.42 to 0.47. invalid version: unknown revision 000000000000

I am using knative.dev/client v0.42.0 and I am trying to upgrade it to 0.47.0. I am using also: knative.dev/networking v0.0.0-20251103014656-7d4a19889854 knative.dev/pkg v0.0.0-20251104154049-...
M.Cherchelanov's user avatar
1 vote
1 answer
32 views

How to poll inside a synctest scope?

Golang 1.24 provides synctest, which can create isolated environments with synctest.Run(f) called bubbles that have their own synthetic clock. This is really useful for testing my production code, ...
hyt's user avatar
  • 990
1 vote
0 answers
16 views

Ginkgo Receive(BeEquivalentTo()) fails when comparing struct with interface payload

When writing Ginkgo unit tests, I ran into an issue asserting data received from a channel that contains a struct with an interface{} field. Here's my models.go type WsBaseMsg struct { Type ...
CyberCr0w's user avatar
1 vote
1 answer
35 views

How is GOPROXY cache queried for go modules with pseudo-versions?

I am looking at the contents of the GOPROXY cache. We publish a module https://github.com/google/oss-rebuild/. We don't have any tagged releases yet but we do have pseudo versions. For example, v0.0.0-...
Aman Sharma's user avatar
Best practices
0 votes
2 replies
72 views

What is the best practices to delete outdated data from the SQLite database on the server?

I have a Golang server (pet project) and each second I add 2879 bytes of data in database. At the moment I'm about a 1GB of data. I want to cleanup the database to avoid a moment when I'm run out of ...
Ihar Katkavets's user avatar
1 vote
1 answer
33 views

Go Gin/Gorilla WebSocket: Is conn.Close() enough to close client connection

So I’m kinda paranoid about stuff like this. I’m using the Gin framework and Gorilla WebSocket for the connection. My question is — is websocket.Conn.Close() enough to fully close the client ...
CyberCr0w's user avatar
1 vote
0 answers
99 views

Go database/sql + godror: no error returned on Oracle ORA-56735 timeout from long-running query

Environment: Go 1.24.6, github.com/godror/godror v0.49.0, Oracle DB using database/sql DB.QueryContext (no explicit context timeout). Problem: I’m running a long-running query via database/sql with ...
Arnab Pal's user avatar
1 vote
0 answers
30 views

Pion WebRTC: Video not received in Sub SFU when using ReplaceTrack in layered SFU architecture

Question: I'm implementing a layered SFU architecture using Pion WebRTC in Go. The setup is as follows: Architecture Master SFU: Receives a single upstream client stream (audio + video). Only ...
yternal's user avatar
  • 11
0 votes
1 answer
40 views

gorazor: Can't find layout

For go i want to use the gorazor template engine. I used code from gorazor repository and from go template benchmark and ran gorazor tpl tpl and got panic: Can't find layout: rzrexmpl/tpl/layout/base [...
surfmuggle's user avatar
  • 6,038
0 votes
0 answers
74 views

Using an embedded interface [duplicate]

I'm trying to find the most efficient way to implement multiple screen-scraping bots. Each bot has a "name" and a "url", and each will have its own specialized scraping function ...
Gadzooks34's user avatar
  • 1,844
2 votes
0 answers
38 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
Tooling
0 votes
4 replies
101 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

15 30 50 per page
1
2 3 4 5
4964