How to reproduce and fix an I/O data race with DTrace

I know that #golang apparently doesn't "break API" but not sure how this feels any different.

https://github.com/purpleidea/mgmt/issues/822

Thanks to #mgmtconfig user karpfen for finding and fixing this before I even got to golang 1.25 !

(I love the golang language, but I continue to really detest the tools.)

Shadowing of package names in funcgen breaks in go1.25 · Issue #822 · purpleidea/mgmt

When generating functions with funcgen, the tool shells out to go doc <pkgname> and then parses the output via regex. In Go 1.25 apparently go doc changed its package resolution order: An innocuous...

GitHub
The docs do apologise for the mm/dd thing, but not for all the other things that are wrong with it
#golang

Go: Format dates and times by just writing our reference date and time in your desired format! And the components of that reference just count up from one to seven! You don’t even need the docs!
Me: Great! So the reference date is something like 0001-02-03T04:05:06+07:00
Go: Hahahaha you’re so silly, what even is that? No, it’s 01/02 03:04:05PM '06 -0700
Me: The first of February?
Go: No, dumbass! That’s 🇺🇸 obviously 🇺🇸 the second of January!!
Me, wearily: And why is the time halfway through the date?
Go: That’s just how you always say the time! Like ‘I get off work today at six PM twenty twenty-five’
Me:  
Go: 

#golang

Coming up with this made me happy today:

```go
// random birth date

rnd := rand.Int64N(time.Now().Unix()*2) - time.Now().Unix()

bdu := time.Unix(rnd, 0)

return bdu.Format("2006-01-02")
```

#Go #Golang #Programming #IHaveNoIdeaIfCodefencesWorkOnHere

"The narrative that derides other languages for being bloated, verbose, and overcomplicated, could one day well be turned upon Go, and I don’t want to see this happen, so I have a request. Go programmers need to start talking less about frameworks, and start talking more about design."
— Dave Cheney.

https://dave.cheney.net/2016/08/20/solid-go-design

#golang

SOLID Go Design | Dave Cheney

"The opportunity for all Go programmers to make our language a success hinges directly on our collective ability to not make such a mess of things that people start to talk about Go the way that they joke about C++ today."
— Dave Cheney.

https://dave.cheney.net/2016/08/20/solid-go-design

#golang

SOLID Go Design | Dave Cheney

A plane's flight recorder is of little use for determining why the plane has been late. Go's flight recorder, on the other hand, is perfectly suited for that kind of investigation!

https://newsletter.appliedgo.net/archive/2025-09-28-enjoy-the-flight/?utm_source=appliedgo-mastodon

#golang
https://newsletter.appliedgo.net/archive/2025-09-28-enjoy-the-flight/?utm_source=appliedgo-mastodon

Enjoy The Flight! • The Applied Go Weekly Newsletter 2025-09-28

Enjoy The Flight! Hi , Q4 has begun, and the Applied Go Weekly Newsletter isn't quite dead yet. Au contraire, mon ami, I am busy optimizing my workflow to...

The Applied Go Weekly Newsletter
Release v2.12.5 · goreleaser/goreleaser

Announcement Read the official announcement: Announcing GoReleaser v2.12. Changelog Full Changelog: v2.12.4...v2.12.5 Helping out This release is only possible thanks to all the support of some awe...

GitHub
@weavejester It is highly depends on your setup and files you are working on. For really big files I use vim too. But for regular software development in #GoLang with gopls as lsp server I have no issues at all. But I heard lsp server for #Python could be very slow.