https://antonz.org/accepted/net-dialer-context/
#GoLang #NetworkProgramming
Microsoft rewriting TypeScript in #golang wasn't on my Bingo card for this year 🤔
https://devblogs.microsoft.com/typescript/typescript-native-port/
Why is Carbon being developed when Google already has Go
https://builtin.com/software-engineering-perspectives/google-carbon
Discussions: https://discu.eu/q/https://builtin.com/software-engineering-perspectives/google-carbon
https://sqlc.dev
https://github.com/sqlc-dev/sqlc-gen-python
I've played a bit with the #TODOmd hook and I know how many TODOs there are in some popular Open Source projects:
* CPython: 187 TODOs
* Linux: 3788 TODOs
* Git: 112 TODOs
* Go: 455 TODOs
What other Open Source projects should I enhance with the TODO.md file?:)
#OpenSource #TODOmd #CPython #Python #Linux #Kernel #Git #Go #Golang #DevTools
New blog post: https://mergiraf.org, a syntax-aware merge driver for #Git.
Supports #Java, #Rust, #Golang, #javascript, #cpp, #csharp, #html, #json, #yaml and #xml so far, and it's quite easy to add support for more thanks to #treesitter.
https://antonin.delpeuch.eu/posts/mergiraf-a-syntax-aware-merge-driver-for-git/
Get it on #Codeberg: https://codeberg.org/mergiraf/mergiraf
Oh, nice. Just found a #curl to #golang http request converter: https://mholt.github.io/curl-to-go/
Is the world in need of a federated Craigslist/Kleinanzeigen platform? I am currently thinking about a project to dig into #fediverse development and learning #golang or stay with #deno and using #fedify.
EDIT: There is already something like that on the fediverse! It's called Flohmarkt. Thanks for the comments mentioning that!
https://codeberg.org/flohmarkt/flohmarkt
Okay, Ai did alright.
I've been thinking about when to use #Ai, and how to use it as a tool to improve my work while not de-skilling me, or outputting crap.
I have a #Golang web app, which has handler, sql, api logic, for some types. Ai works really well using the existing architecture setup as a template/model for adding similar functionality for a new type.
"Add meta tag handlers to display a page of blog posts that have the specified tag"
The actual prompt was more comprehensive.
#go / #golang folks. If any of you is still using my `github.com/tealeg/xlsx` library (>6k stars suggest some of you are), please note that it has now been migrated to `codeberg.org/tealeg/xlsx` and bumped to v4 (to reflect the incompatibility of this path change).
The old #GitHub repo is now archived. It will still work in your code, but no further attention or work will happen there. Please create your issues and PRs at #Codeberg instead.
Did any #Go developers need code to get a zero value of a struct but without knowing the layout of the struct itself?
The only thing I could come up with was:
func zero[T any](v T) T {
z := &v
zz := reflect.ValueOf(z).Elem()
zz.Set(reflect.Zero(reflect.TypeOf(v)))
return *z
}
And see here an example of usage: https://go.dev/play/p/Aqzc_nRzOcP
I needed it in order to get zero copies of random structs so I could test that some marshal/unmarshal functionality is a bijection.
Is this a decent way to do it? Are there alternatives?
One issue I'm noticing when learning Go is that the idiomatic nature of the language is making the learning process more difficult for me than C++ or C#.
With C++/C# you can focus on how to write code and then how to design code, but there is a very tight coupling of these concepts in Go that is taxing my brain and pretty much forcing me down the tutorial route, which I tend to struggle with compared to the language reference route.
Sigh. I can fully understand why #golang have given up trying to improve the language’s cluttered error handling syntax, but it’s still disappointing. https://go.dev/blog/error-syntax
var _ TheInterface = (*TheImplementation)(nil)