Masthash

#Golang

Golang Weekly
2 hours ago
Golang Weekly
6 hours ago

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

#golang #programming

GoLab Conference
8 hours ago

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

Preslav Rachev
9 hours ago

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.

awalterschulze
12 hours ago

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

Sasha
12 hours ago

#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?

Golang Weekly
18 hours ago
Golang Weekly
1 day ago

Zep: A long-term memory store for LLM apps, written in Go

https://github.com/getzep/zep

Discussions: https://discu.eu/q/https://github.com/getzep/zep

#golang #programming

Go Time ⏰
1 day ago

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

deadprogram
1 day ago
Deezy
1 day ago

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

GoLab Conference
1 day ago

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

#GoLang #GoLab

Preslav Rachev
1 day ago

@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.

Brian Morrison II :gopher:
1 day ago

What are some of your favorite, less popular #golang packages to use?

Getting the itch to build with something new.

veer66
2 days ago

In Bun, "? = ?" scared me. However, I shouldn't worry because Bun parses "? = ?" by itself. Bun doesn't send "? = ?" to a database engine. #golang

veer66
2 days ago

Both Gorm and Bun parse SQL conditional strings. 😮 #golang

Jobs for Developers
2 days ago

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

veer66
2 days ago

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 😐

Programming Weekly
2 days ago

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

#golang #programming

veer66
2 days ago

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.

#golang

https://github.com/writefreely/writefreely/blob/67dbc9b22b47b0a09a466dbe2b92e7d94c95334d/posts.go#L1328

Long lines of code with SQL statements
2 days ago

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

#rust #golang #burntsushi #linux

burnt sushi in my file system
Brian Morrison II :gopher:
2 days ago

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 👍

veer66
2 days ago

The Bun ORM for #golang looks interesting, but I didn't see any JSON query example. https://bun.uptrace.dev/

Brian Morrison II :gopher:
2 days ago

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

Heath Stewart
2 days ago

Excited to see that slices, maps, and #slog are slated to ship in #golang 1.21!

Getting excited from the movie, "Elf"
Golang Weekly
3 days ago

cs: command line codespelunker or code search written in Go

https://github.com/boyter/cs

Discussions: https://discu.eu/q/https://github.com/boyter/cs

#golang #programming

#golang [security] Go 1.20.5 and Go 1.19.10 are released
https://groups.google.com/g/golang-announce/c/q5135a9d924

Valentin Deleplace
3 days ago

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

#golang

YouTube thumbnail: Go is great for sustainability
Brian Morrison II :gopher:
3 days ago

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

Lorenz Bauer
3 days ago

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

Steven
3 days ago

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.

#debugging

https://open.spotify.com/episode/1YNnYikGztEOPC839AjuNu?si=d9785d0a370446c6&nd=1

GoLab Conference
3 days ago

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

#SpeakerHighlight #GoLab #TechConference

3 days ago

I've made a meme.

#HareLang, #OdinLang, #ZigLang vs #GoLang

Meme about me looking at programming languages: Hare, Odin, and Zig, instead of Go.
Go Time ⏰
3 days ago

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

Sasha
4 days ago

#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

ζ
4 days ago

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

Jobs for Developers
4 days ago
Golang Weekly
4 days ago

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

#golang #programming

Go Time ⏰
4 days ago

🎉 New episode of Go Time!

Tips, tricks, best practices and philosophical AI debates abound when OpenAI ambassador Bram Adams joins Natalie, Johnny & Mat to discuss prompt engineering. #golang #ai #prompts

🎧 https://gotime.fm/279

Vladimir Savić
4 days ago

🎉 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

#golang

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.

juliettef
5 days ago

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

Valentin Deleplace
6 days ago

😱😱 #golang will have min and max built-in functions
https://tip.golang.org/ref/spec#Min_and_max

Preslav Rachev
6 days ago

@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.

Preslav Rachev
6 days ago

@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/

Preslav Rachev
1 week ago

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

Preslav Rachev
1 week ago

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 …

Preslav Rachev
1 week ago

@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.

Daniel Quinn
1 week ago

#golang's pattern of "bubbling up" errors that're returned from functions really does just look like manual exception handling with extra steps.

Golang Weekly
1 week ago

[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

#golang #programming

Preslav Rachev
1 week ago

Which one of these convention package names are you the least likely to use in your #golang projects?

---
#programming #fedipoll

Preslav Rachev
1 week ago

@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 :)

Preslav Rachev
1 week ago

@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.

Go Time ⏰
1 week ago

🔥 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!

💚 https://gotime.fm/278

Golang Weekly
2 weeks ago
Go Time ⏰
2 weeks ago

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.

🔗 https://github.com/tidwall/jj

Matt Cengia
2 weeks ago

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

Elan Hasson
2 weeks ago

What isn't there a #golang package for?

Scott Williams 🐧
2 weeks ago

If #golang were just a little less verbose, I'd probably use it a lot more.

Scott Williams 🐧
2 weeks ago

Using #golang for a project since the SDK has really nice structs and instantiators for all the API calls where the #Python SDK for the project just phoned it in for all the payloads.

Go Time ⏰
2 weeks ago

“Sorry, Java people. I don’t think Java people listen to this, do they?”

https://youtube.com/shorts/HjwLJUFFEb0 #golang #java

Go Time ⏰
3 weeks ago

🙌 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 💪

#golang #conferences

🎧 https://gotime.fm/277

jbz :catjam:
3 weeks ago

🤔 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/

Jan :rust: :ferris:
3 weeks ago

Inko - A language for building concurrent software with confidence

https://inko-lang.org/

Looks quite nice! Almost like a mix of #RustLang and #GoLang (with 75% Rust and 25% Go).

#Inko #InkoLang #Concurrency #ProgrammingLanguage

Anders Borch
3 weeks ago

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.

Mattsi
3 weeks ago

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!

Elan Hasson
4 weeks ago

#golang generics really are limited.

#golang
>Go Developer Survey 2023 Q1 Results - The Go Programming Language
https://go.dev/blog/survey2023-q1-results

Elan Hasson
1 month ago

@zkat sounds like #golang

Michael Henriksen
1 month ago

📣 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!

#golang #testing #tdd

Pictogram of a person shocked by seeing a cockroach crawling on the floor. Below it says, “GOKIBURI: automatic test runs for go projects”.
Screenshot of Gokiburi's web UI settings where sound notifications, among other settings, can be configured.
Screenshot of a test result overview in Gokiburi's web UI.
Screenshot of Gokiburi's code coverage view, which shows the tested code colored on a scale to show the level of code coverage in the tests.
Pragmatic Bookshelf
1 month ago

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/

#golang #sysadmin #commandline #programming

Joel Auterson
1 month ago

I always get a kick out of explaining to people how #golang’s magical, mildly terrifying timestamp formatting works.

Filippo Valsorda :go:
1 month ago

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}")"

Filippo Valsorda :go:
1 month ago

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

Golang Weekly
1 month ago

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

#golang #programming