#Golang
Anywherelan: opensource peer-to-peer VPN in Go
https://github.com/anywherelan/awl
Discussions: https://discu.eu/q/https://github.com/anywherelan/awl
Mikochi - a minimalist remote file browser with a Go backend
https://github.com/zer0tonin/Mikochi
Discussions: https://discu.eu/q/https://github.com/zer0tonin/Mikochi
Located along the picturesque Lungarno, Grand Hotel Mediterraneo offers a delightful setting for #GoLab2023.
Stroll along the river, soak in a romantic atmosphere, and discover why the Lungarni are cherished as one of Florence's most enchanting spots!
#Florence #Italy #GoLang

Speaking about #Django, I’m still on the opinion that #Golang deserves a well-maintained Django-like Web framework. And no, Buffalo ain’t it unfortunately. It’s too niche and some of the design decisions were too closely mapped to #Rails. I’d love a full-stack Go framework that makes extensive use of code generation - especially, in the data access layer. Working with reflection-based “ORMs” like GORM ain’t fun either.
Using pointers to reduce copies is premature optimization
Is this common #golang or just me?
I had too many bugs where the channel I was trying to read from was nil, so I made this generic function. Is there a better way or standard library function for this yet?
I also have a generic ReadNonNull, Write, WriteStreamTo and Take

#devlog I was tired yesterday, and had a relatively busy work day. Failed to get *working* scrollbars added to the scene.panel.scrollcontainer.tilemap in #Godot4 . Watched a yt on #golang Contexts but not convinced there is much scope for go routines in the game engine. Worked on how to describe the battle hierarchy rules on paper. Should I do a full #Godot4 course?
spectagular: simple struct tag parsing and validation
https://github.com/matt1484/spectagular
Discussions: https://discu.eu/q/https://github.com/matt1484/spectagular
Zep: A long-term memory store for LLM apps, written in Go
Discussions: https://discu.eu/q/https://github.com/getzep/zep
It's time for Unpopular Opinions! 🎸
Andy Walker thinks that syntax highlighting your code actually sucks 💣
https://youtube.com/shorts/loLLjjRBK-k
👆Hear him out! Then vote and reply with your take #golang #unpopularopinion
Speaking of releases, here is GoCV v0.33
I've released a new project aimed at headless management of your #Obsidian vault, currently named obsidian-pipeline: https://github.com/therealfakemoot/obsidian-pipeline
I started working on this because I've got a Drone pipeline that watches commits to my vault and does a few things with it, mostly publishing to my blog.
I wanted to launch with a unique flagship feature, though: JSONSchema validation.
Using the validate subcommand, you can programmatically guarantee that your notes pass certain degrees of quality control. This can short-circuit publishing pipelines or act as a local aide, possibly set to run at set intervals
I've tried to justify the efforts a bit better here on my blog ( https://blog.ndumas.com/2023/06/validating-yaml-frontmatter-with-jsonschema/ )
Coming soon will be moving files and renaming all their associated links, dedicated hugo modules, and more.
This project is wholly written in #golang and it would behoove me to give a shoutout to someone who's doing the exact same thing as me: https://github.com/Yakitrak/obsidian-cli
The schedule for #GoLab2023 is online! 🪩
Get ready to explore a lineup of inspiring talks, workshops, and networking opportunities.
🤩 It's going to be an event you won't want to miss!
👉 https://golab.io

@brianmmdev I’ve recently heard about https://github.com/carlmjohnson/requests Not sure if you are a standard library purist or not, but I’ve always found HTTP request fetching and response parsing overly verbose in Go (way too verbose). This library might be a nice alternative to try in future small #golang projects.
What are some of your favorite, less popular #golang packages to use?
Getting the itch to build with something new.
In Bun, "? = ?" scared me. However, I shouldn't worry because Bun parses "? = ?" by itself. Bun doesn't send "? = ?" to a database engine. #golang
Both Gorm and Bun parse SQL conditional strings. 😮 #golang
Chainlink Labs is hiring Security Response Engineer
🔧 #golang #python #ruby #blockchain #defi #aws #gcp #securityengineer
🌎 Remote; Dallas / Remote
⏰ Full-time
💰 $100k - $230k (Estimate)
🏢 Chainlink Labs
Job details https://jobsfordevelopers.com/jobs/security-response-engineer-at-chainlinklabs-com-apr-14-2023-fcdbe5?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring
Bun's SelectQuery is coupled with the DB and IConn interfaces. I am disappointed that I cannot test SelectQuery without a database connection. Nevertheless, connecting to an SQLite memory database is not challenging. #golang 😐
Apollo dev posts backend code to Git to disprove Reddit’s claims of scrapping and inefficiency
https://github.com/christianselig/apollo-backend
Discussions: https://discu.eu/q/https://github.com/christianselig/apollo-backend
Remote development w/ VS Code
https://www.jetbrains.com/help/go/remote-development-overview.html
Discussions: https://discu.eu/q/https://www.jetbrains.com/help/go/remote-development-overview.html
Based on the lines of WriteFreely code in Go, I believe using an ORM or query builder may be a viable approach.
I would prefer to avoid having to edit two similar lines of code when adding or removing columns.

There's a piece of BurntSushi in every single one of us 😔 🤗 😊

Yesterday I showed of the results of a #golang package I’m building to export Notion pages to markdown. Today I published the repo
https://github.com/bmorrisondev/ntomd
VERY early stages, but I’ll be iterating on it because I’ll be using it every day at work. Part of my core responsibilities at PlanetScale is creating content for the blog & docs. They use markdown for their content, but I’d rather draft in Notion as it provides a nicer experience over raw MD. This will power that workflow 👍
The Bun ORM for #golang looks interesting, but I didn't see any JSON query example. https://bun.uptrace.dev/
Hope sharing my content I create is OK here.
I literally just learned about type switches in Go yesterday so I made a video about how they work and how I’m using them:
WTF is a type switch in #golang ?
https://youtu.be/p6OTZiCkPzk
New video course from freeCodeCamp focuses on Go https://www.fosslife.org/new-go-programming-course-freecodecamp #Go#OpenSource #Golang #programming #training #education #SoftwareDevelopment #languages #CloudNative #freeCodeCamp

Scrubbing sensitive data at 180MiB/sec/core with Go
https://encore.dev/blog/scrubbing-sensitive-data
Discussions: https://discu.eu/q/https://encore.dev/blog/scrubbing-sensitive-data

cs: command line codespelunker or code search written in Go
Discussions: https://discu.eu/q/https://github.com/boyter/cs
#golang [security] Go 1.20.5 and Go 1.19.10 are released
https://groups.google.com/g/golang-announce/c/q5135a9d924
Go is a great choice for designing and running sustainable production systems
Go's smaller resource footprint enables a durable codebase with lower runtime costs → https://goo.gle/3OO3hCt

Been a while since I've checked in here, but kinda getting tired of Twitter again lol
Started working on a #golang library to export a Notion page to markdown. Planning on using this for work where I write docs and blog articles, trying to automate my process a bit more

Neat optimization done by the #golang compiler: using []byte as a key in map[string]foo doesn't allocate (https://github.com/golang/go/issues/3512). Only applies when the type conversion is done in the map lookup though: https://github.com/cilium/ebpf/pull/1051/commits/2b3b986d1bb66db3f1df96581702bc308e096f6f
Haven't done Golang hacking in a hot minute, but here's me trying to add WAD support to fq. #golang

RT ManningBooks: Go #Golang bug hunting with a crowd of blue gophers!
@alienor_latour, @\doniacld, & Pascal Bertrand, explain what makes Go tick, & talk about the strange bugs they've encountered across their diverse experiences as software engineers.
https://open.spotify.com/episode/1YNnYikGztEOPC839AjuNu?si=d9785d0a370446c6&nd=1
Roberto Clapis will be with us! He's a brilliant expert and speaker in the field of security with a focus on #GoLang.
Don't miss the opportunity to learn from Roberto at #GoLab2023 🤩
https://golab.io/speakers/clapis

Let’s play Unpopular Opinions! 🤘
Kris Brandow says this year’s generative AI is like last year’s NFTs or 3D printers: https://youtu.be/EXEK48OcB0I 💣
After hearing him out 👆 do you agree with him? #golang #unpopularopinion
#devlog from yesterday. I read lots of GD4 docs, which are often a little vague. Used layers to add a castle on top of a terrain hex. Added a save button that hand rolls (!!!) a JSON version of the TileMap.
Figured out how battles will work - essentially scissor, paper,stone on a big scale.
Need to fork map app into viewer and creator.
Understand GDscripts OO capabilities for better JSON formatting.
Start committing to github (or lab?)
#godotengine #golang #gamedev #json #strategygame

scoop update go した
> GoさんはTwitterを使っています: 「🎉 Go 1.20.5 and 1.19.10 are released! 🔏 Security: Includes security fixes for SUID binaries (CVE-2023-29403) and cgo (CVE-2023-29402, CVE-2023-29404, CVE-2023-29405) 📡 Announcement: https://t.co/rEOkQ6BKRt 📦 Download: https://t.co/DRXWmfvcwo #golang https://t.co/oGqERQ5Jme」 / Twitter https://twitter.com/golang/status/1666146510646411269
Metabase is hiring Cloud Engineer
🔧 #golang #python #aws #kubernetes #terraform
🌎 Remote
⏰ Full-time
💰 $100k - $230k (Estimate)
🏢 Metabase
Job details https://jobsfordevelopers.com/jobs/cloud-engineer-at-metabase-com-may-11-2020-c182f0?utm_source=mastodon.world&ref=mastodon.world
#jobalert #jobsearch #hiring
Using GoLang's coroutines to handle Laravel jobs - Mohamed Said
https://themsaid.com/using-golangs-coroutines-to-handle-laravel-jobs
Discussions: https://discu.eu/q/https://themsaid.com/using-golangs-coroutines-to-handle-laravel-jobs
GitHub - ndabAP/ping-pong: Retro game pong written in Go and Websocket as transport
https://github.com/ndabAP/ping-pong
Discussions: https://discu.eu/q/https://github.com/ndabAP/ping-pong
🎉 Go 1.20.5 and 1.19.10 are released!
🔏 Security: Includes security fixes for SUID binaries (CVE-2023-29403) and cgo (CVE-2023-29402, CVE-2023-29404, CVE-2023-29405)
📡 Announcement: https://groups.google.com/g/golang-announce/c/q5135a9d924?pli=1
📦 Download: https://go.dev/dl/#go1.20.5
Reddit changes, will this subreddit go on a strike?
I wonder why #Golang creators went with "." as package/name separator instead of ":". The parsing conflict with labels is easy to remove (if the next char is space/eol, it's a label), and it would have removed the frustrating confusion between package.name and value.member.
New IconFontCppHeaders support for Pictogrammers Material Design icons MDI https://pictogrammers.com/library/mdi/
https://github.com/juliettef/IconFontCppHeaders is a zlib C & C++ headers, C# & Python classes, Rust files and Go package for icon fonts:
- Font Awesome
- Fork Awesome
- Google Material Design
- Pictogrammers Material Design icons
- Kenney game icons
- Fontaudio
- Codicons
Thanks Bobby Angelov for the MDI implementation and our patrons https://www.patreon.com/enkisoftware?filters[tag]=IconFontCppHeaders
#GameDev #OSS #Icon #Font #Cpp #Rust #Golang #python #Csharp
😱😱 #golang will have min and max built-in functions
https://tip.golang.org/ref/spec#Min_and_max
@shuLhan it’s a vicious circle, because both the organisers and community “superstars“ would end up choosing topics that they themselves want to hear. I have this feeling that #Golang conference topics in the past few years all rotate around the same 2-3 topics. I don’t think that the language is so niche as most companies (and even Google) would make people believe.
@paterasilk @eoin_murphy @Crocmagnon Thanks for the encouraging words! Unfortunately, it’s not what conference organisers, their sponsors, or even the #Golang community on Reddit would have liked https://reddit.com/r/golang/comments/14075wt/my_talk_proposal_got_declined_a_few_times_im/
My #golang talk proposal got declined a few times. I’m trying to make sense of that. Does it have to do with the pitch, or is it a topic the Go community is generally not interested in?
I was expecting a little more enthusiasm when it comes to giving chance to non-cloud/infra/tooling topics. Why would you go to a conference talk, if it tells you the same story over and over again? I think that conference organizers should strive for more topic diversity.
https://preslav.me/2023/06/02/my-golang-conference-talk-proposal-got-declined-a-few-times/ #programming
I don’t have any mental capacity or a proper use case for #ziglang right now, but I really like a lot of the desig decisions (error handling, optionals, comptime meta-programming).
I see Zig as a nice north star guideline of where I’d love to see #golang evolve someday - just the right amount of abstraction that keeps code readable, without missing the trees for the forest.
Honestly, if it had a working package manager and a production-ready HTTP server …
@Merovius @danielquinn think about it this way - you have a chance to actually make error messages useful, by wrapping and adding context. Plus, unlike try-catch, you just handle the error and that’s it.
Sometimes, I think about error handling in #golang as an opportunity to tell a story: https://preslav.me/2023/04/14/golang-error-handling-is-a-form-of-storytelling/
It’s not perfect, but I’m sure that folks are working on a comparable solution. I like how #ziglang treats errors - not too much boilerplate, not too much “magic,” either.
#golang's pattern of "bubbling up" errors that're returned from functions really does just look like manual exception handling with extra steps.
[OpenSource] I am building high performance Plex alternative in Go for Movies and TV Show
https://github.com/lunarr-app/lunarr-go
Discussions: https://discu.eu/q/https://github.com/lunarr-app/lunarr-go
Which one of these convention package names are you the least likely to use in your #golang projects?
@florimond have you played with #golang? With the exception of happy statements (it’s very error-first, which I find great), it checks all the other boxes. Go is literally the epitome of performing complex tasks with dumb-looking code :)
@jlhertel yeah I know the pain. I used to work on a Spring 4 app that literally ate 4-8 GBs of RAM at the start. That’s not indicative of the entire #JVM spectrum, to be honest. Newer, more cloud-inclined frameworks like @quarkusio offer the same familiar experience at a fraction of the RAM consumed.
Still, nowhere near to #Golang or #rustlang apps. It’s a different league.
ko: Easy Go Containers
Discussions: https://discu.eu/q/https://ko.build/
🔥 New episode of Go Time!
Return guests @benbjohnson & @quii join Mat & Kris to talk about the files and folders of your #golang projects, big and small.
Does the holy grail exist, of the perfect structure to rule them all? Or are we doomed to be figuring this out for the rest of our lives? Tune in and find out!
gut: convert golang structs to typescript interfaces
https://github.com/tompston/gut
Discussions: https://discu.eu/q/https://github.com/tompston/gut
JJ is a command line utility that provides a fast and simple way to retrieve or update values from #JSON documents. It's powered by #golang’s GJSON and SJSON under the hood.
It's fast because it avoids parsing irrelevant sections of json, skipping over values that do not apply, and aborts as soon as the target value has been found or updated.
I love that there are so many feature-rich self-contained #Golang apps out there these days; it's amazing how many features can be built into a single binary, and developed so quickly, presumably using some of the many Golang libraries available.
I do feel a bit uncomfortable though, as somebody who is generally security-conscious (but doesn't necessarily identify as a "#security professional" just yet) and doesn't actually have much understanding of Golang, about how well-audited these apps are, since they presumably include a lot of library dependencies.
#infosec #auditing #audit
What isn't there a #golang package for?
If #golang were just a little less verbose, I'd probably use it a lot more.
“Sorry, Java people. I don’t think Java people listen to this, do they?”
🙌 New episode of Go Time!
Now that you’ve aced that CFP, the gang is back to share our best tips & tricks to help you give your best conference talk ever 💪
🤔 How Much Memory Do You Need to Run 1 Million Concurrent Tasks?
via Piotr Kołaczkowski
#Concurrency #Rust #Golang #Java #CSharp #Python #Node #Elixir
https://pkolaczk.github.io/memory-consumption-of-async/
Go discussion: enhance http.ServeMux routing
https://github.com/golang/go/discussions/60227
Discussions: https://discu.eu/q/https://github.com/golang/go/discussions/60227
I actually kinda-like #bard
It’s obviously wrong sometimes, but it starts out straight up telling you that it’s wrong sometimes.
After a session, I think I now have a good overview of what it’ll take to switch from #golang to #rust - all the little prompts to go and google stuff myself actually gives me a starting place rather than a false sense of knowledge.
#presentación
Vengo de masto.social. Me mudo a una instancia más "pequeña". Es algo que quería hacer desde el principio, pero en su momento no sabía cuál elegir.
Interesado en #linux #osint #Golang y también en deportes de #motor y noticias de actualidad.
Gracias a @rober por gestionar este rincón del fediverso.
There are lots of different tutorials for getting started with #golang, where should I start?
Looking for something practical for senior devs that want to get this gist of it quickly.
also #golang go brrrrrr generating 4000 excel files in under 8 seconds!
#golang generics really are limited.
#golang
>Go Developer Survey 2023 Q1 Results - The Go Programming Language
https://go.dev/blog/survey2023-q1-results
Which Go router should I use? (with flowchart)
https://www.alexedwards.net/blog/which-go-router-should-i-use
Discussions: https://discu.eu/q/https://www.alexedwards.net/blog/which-go-router-should-i-use
📣 I finally managed to get a little project I've been working on ready for a “beta” release. Introducing:
Gokiburi: Automatic Test Runs for Go Projects
https://github.com/michenriksen/gokiburi
I've used it privately for a while now with no major issues, but bugs should be expected. Give it a try and share your thoughts!




Need a new language for sysadmin tasks? Try Go. Ricardo Gerardi @ricardogerardi shows you the basics in just a few minutes:
https://medium.com/pragmatic-programmers/how-to-get-started-programming-in-go-4122f8e48e7a
His book:
https://pragprog.com/titles/rggo/
I always get a kick out of explaining to people how #golang’s magical, mildly terrifying timestamp formatting works.
Now with testdata folder support, and better quoting since ssh(1) loses track of how positional arguments are split apparently? #golang
#!/usr/bin/env bash
set -euo pipefail
rsync -a "$1" "$GOHOST":/tmp/gotest.exe
if [ -d testdata ]; then rsync -a --delete testdata/ "$GOHOST":/tmp/testdata/; fi
ssh "$GOHOST" "cd /tmp; ./gotest.exe $(printf "%q " "${@:2}")"
I just wrote my most useful three lines of code ever.
#!/usr/bin/env bash
rsync -a "$1" "$GOHOST":/tmp/gotest.exe
ssh "$GOHOST" /tmp/gotest.exe “${@:2}”
With this in $PATH as go_linux_amd64_exec, I can run
GOHOST=ec2-user@52.212.217.158 GOOS=linux GOARCH=amd64 go test
and the tests (or benchmarks) run on the remote machine as if they were local. Not just smooth cross-compilation, Go has remote execution too!
It even works transparently within larger programs like benchdiff. #golang
proposal: cmd/go: add .ʕ◔ϖ◔ʔ as an alternate spelling of .go in file names
https://github.com/golang/go/issues/59968
Discussions: https://discu.eu/q/https://github.com/golang/go/issues/59968