CARVIEW |
Select Language
HTTP/2 200
date: Wed, 30 Jul 2025 00:57:15 GMT
content-type: text/html; charset=utf-8
cf-ray: 9670e69c1e66c1cc-BLR
cf-cache-status: DYNAMIC
cache-control: private
set-cookie: prov=77ac22d1-d5a5-4849-a11d-f47fc426eb48; expires=Thu, 30 Jul 2026 00:57:15 GMT; domain=.stackoverflow.com; path=/; secure; httponly
strict-transport-security: max-age=31536000; includeSubDomains
vary: Accept-Encoding
content-security-policy: upgrade-insecure-requests; frame-ancestors 'self' https://stackexchange.com
feature-policy: microphone 'none'; speaker 'none'
x-clacks-overhead: GNU Terry Pratchett
x-frame-options: SAMEORIGIN
x-request-guid: d1e3deb9-2a6c-4bc5-a1a5-f2f1789e2e5c
x-worker-origin-response-time: 362000000
x-dns-prefetch-control: off
set-cookie: __cflb=02DiuFA7zZL3enAQJD3AX8ZzvyzLcaG7w14ea99RSzuQ8; SameSite=Lax; path=/; expires=Wed, 30-Jul-25 23:57:15 GMT; HttpOnly
set-cookie: prov=77ac22d1-d5a5-4849-a11d-f47fc426eb48; Path=/; HttpOnly; Domain=stackoverflow.com
set-cookie: __cf_bm=jVKQlDGB9Mn8Ldrrf8ddL5w5AMs4Jo2BOSwBaRClzhY-1753837035-1.0.1.1-NoVR50NgiCk1Ka0Rh6.LIwuWUNnC69tP8kfsqxAvrD1RdG1.sjASSwHUSjGiyppKthsmcvRFRVrmp65tVxaZQ4wFhzagiXFMFhzkXFSDqok; path=/; expires=Wed, 30-Jul-25 01:27:15 GMT; domain=.stackoverflow.com; HttpOnly; Secure; SameSite=None
set-cookie: _cfuvid=FGjqLWqkmWqo_yWx8zpv3V_iIBadwQ2WotqX9OvgNcc-1753837035289-0.0.1.1-604800000; path=/; domain=.stackoverflow.com; HttpOnly; Secure; SameSite=None
server: cloudflare
content-encoding: gzip
Newest 'go' Questions - Stack Overflow
Skip to main content
Stack Overflow
- Stack Overflow for Teams Where developers & technologists share private knowledge with coworkers
- Advertising Reach devs & technologists worldwide about your product, service or employer brand
- Knowledge Solutions Data licensing offering for businesses to build and improve AI tools and models
- Labs The future of collective knowledge sharing
- About the company Visit the blog
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more.
View results.
Collectives™ on Stack Overflow
Find centralized, trusted content and collaborate around the technologies you use most.
Learn more about CollectivesTeams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Learn more about Teams
74,417 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
-2
votes
0
answers
55
views
Port http server is different but still get response
I'm currently building a simple reverse proxy where I can forward to the origin server.
When the client requests from the reverse proxy, I do not change the header of the request. The request still ...
-5
votes
0
answers
41
views
Unable to run .go file without admin rights in vs code [closed]
I am new to go and I have written a simple go Lang Hello world code but when I try to run i using command go run hello.go it gives me error.
"The application you are trying to run is not ...
0
votes
1
answer
116
views
golang can't find SOME standard library packages (could not import fmt (open : no such file or directory)) [closed]
I'm new to Go and I'm having a strange problem. It has (I think) little to do with the package I want to change, wrap. It has to do with imports.
I'm writing a test program which imports "...
-3
votes
1
answer
78
views
How to cancel long-running tasks when a Go HTTP server is shut down? [duplicate]
I'm writing an HTTP server in Go that performs long-running tasks (e.g. data processing or computation). When the server shuts down via srv.Shutdown(ctx), I want in-progress handlers to stop, even if ...
-3
votes
1
answer
50
views
Generic type constraint match reflect.Type passed [closed]
Could you please help to mercy golang compiler in the following example. I'd like to implement generalized string parser
func Value[T reflect.Type](value string, t reflect.Type) T {
switch t.Kind()...
0
votes
1
answer
50
views
Error 1045 (28000): Access denied for user ''@'localhost' (using password: NO) exit status 1 [closed]
I am trying to implement the tutorial from https://go.dev/doc/tutorial/database-access on windows 11 machine
I have the set variables using the following code in my workspace terminal
set DBUSER=root
...
1
vote
0
answers
65
views
Environment variables not accessible in dynamically loaded .dylib on macOS using Rust libloading, but works on Windows
macOS: The dynamically loaded .dylib cannot read environment variables that were set by the main Rust process at runtime
Windows: The same code works perfectly - the .dll can access environment ...
0
votes
1
answer
98
views
How much stack space is required for saving the function context in Go 1.24?
How much stack space is required for saving the function context in Go 1.24?
I wrote an go demo like this:
func getStackUsage() {
var recurse func(int)
recurse = func(n int) {
tmp := n
...
-3
votes
0
answers
42
views
Invalid File Memory Address or Nil Pointer Dereference from Go Channel [closed]
I am quite new to Go, and am running into a strange issue. I have an API which takes in files, copies them and does some work with the copies, and returns the output of said work. I am trying to make ...
1
vote
0
answers
41
views
How to enable auto-refresh for VS Code Explorer and Source Control panes for detecting file changes and updates
When the Go extension is enabled in VS Code, updates to local files are no longer displayed/detected in the Explorer and Source Control panes until manually refreshed.
Notes:
Disabling the Go ...
0
votes
0
answers
58
views
Is there a way to use go mobile, and gioui? [closed]
I want to make an android app, would it be possible to use gioui (for the UI), and go mobile (to build it to android) and make an app?
0
votes
1
answer
53
views
Getting a "connection refused" error when attempting to upload metrics to an OpenTelemetry collector
I'm trying to build a simplified example of a Go application which exports metrics using OpenTelemetry and visualizes them in Grafana. I have the following directory structure:
.
├── docker-compose....
-2
votes
0
answers
51
views
what to discuss a specific case in which it is better to skip-"ctx cancel" in Golang [duplicate]
I don't think it is always better to call ctx cancel in golang.
Here is the pattern I think skipping cancel is totally legit. In this case
I want the caller to return as fast as possible
I want the ...
2
votes
0
answers
64
views
-1
votes
0
answers
56
views
In the go syscall library, it does not appear that LazyProc.Call conforms to the rules of the unsafe library, am I missing something?
from here:
https://pkg.go.dev/unsafe#Pointer
The unsafe library says:
If a pointer argument must be converted to uintptr for use as an argument,
that conversion must appear in the call expression ...
- The Overflow Blog
-
-
- Featured on Meta
-
-
-
-
-
-
Hot Network Questions
- What are these orange and green solid circles painted on a taxiway?
- Self-written .desktop file worked before restart, is ignored now
- Where does Nietzsche indicate the character of the Superman (Übermensch)?
- Ivy Vine Transfer
- VMWare, SAN, SSD, Influence of the fill level on the performance of a virtual hard disk
- What is known about the third time derivate of the expansion of the Universe?
- Appendix: Section header and content on different pages - Article class
- How to format an epigraph from a film
- How can my dwarves keep humans from reverse engineering their technology?
- Can ffmpeg record screen on wayland?
- Does Genesis account allow for the possibility of intelligent man like beings existing before Adam and Eve?
- Can Trump sue South Park?
- Is the six million dollar hut challenge real?
- What is this under cabinet lamp style? Are they easily convertible to LED?
- Electrician ran neutral and ground to the same bar, and is telling me it's common practice. Pictures show my main and sub. Is he right?
- Do police need a search warrant to chase a fugitive onto private property?
- Do magic items that require attunement regain expended charges even when you're not attuned to them?
- Writing a visually-selected couple of files out to a file with an open buffer
- On Debian, XFS, I can edit a file of another user with permissions 644 without ACL
- Has the similarity between diagrams of the expanding universe and of vapour pressure in mixtures been noted by others? Is this just coincidence?
- Rate of Difference of Gaussian Error
- Unable to recognize kanji / kana from typed document circa 1902
- How to identify process' serving 127.0.0.53:53 and 127.0.0.54:53?
- Does the game acknowledge the Gestrals as paintbrushes?