Miki Tebeka · @tebeka
44 followers · 48 posts · Server mas.to

: Use text/tabwriter to write nicely indented reports to the screen.

#gem #Golang

Last updated 1 year ago

Michael Stapelberg 🐧🐹😺 · @zekjur
1873 followers · 749 posts · Server mas.to

Impressive work on making gopls faster!

go.dev/blog/gopls-scalability

#Golang

Last updated 1 year ago

Taufik Hidayat · @tfkhdyt
10 followers · 21 posts · Server mas.to

auto-epp-go is a program that manages the energy performance preferences (EPP) of your CPU using the AMD-Pstate driver. It adjusts the EPP settings based on whether your system is running on AC or battery power, helping optimize power consumption and performance.

github.com/tfkhdyt/auto-epp-go

This project is a rewrite of the original Python version [auto-epp](github.com/jothi-prasath/auto-) in , aiming to improve memory efficiency and overall performance.

#FOSS #Linux #ryzen #pstate #Golang #amd

Last updated 1 year ago

Tobias Klausmann · @klausman
57 followers · 774 posts · Server mas.to

@appliedgo Additional note regarding blogposts etc: using the hashtag (like I just did) is fine and will make the article findable.

#Golang

Last updated 1 year ago

Miki Tebeka · @tebeka
44 followers · 47 posts · Server mas.to

: Use `re?` or `(?U:re)` to make regular expressions non-greedy.

#gem #Golang

Last updated 1 year ago

Dan Couture · @mathyourlife
156 followers · 458 posts · Server mstdn.social

I've been switching my laptop over the last week. Today got to install some old friends like and along with the usual env and check that is working.

#pprof #Golang #ggplot2 #r

Last updated 1 year ago

Benjamin Bryant · @Jaminologist
105 followers · 44 posts · Server mstdn.social

Hey hey! Last week I was a guest host at GopherCon UK 2023. Here's a little review of the conference!

Link: jaminologist.com/gophercon-uk-

#Golang

Last updated 1 year ago

Michael Stapelberg 🐧🐹😺 · @zekjur
1854 followers · 726 posts · Server mas.to

If I wanted to roll out a small single sign on solution for a team of < 10 users, to replace a bunch of htaccess-protected resources, would you recommend Ory, Authelia or Casdoor? And why?

I’d like to keep things simple, but also still maintained in 5 years from now :)

(I’d prefer a implementation over something like Keycloak for resource usage and familiarity.)

#Golang

Last updated 1 year ago

Michael Stapelberg 🐧🐹😺 · @zekjur
1845 followers · 710 posts · Server mas.to

Backward Compatibility, Go 1.21, and Go 2

go.dev/blog/compat

by @rsc

#Golang

Last updated 1 year ago

Miki Tebeka · @tebeka
39 followers · 42 posts · Server mas.to

: Use port 0 to get random free port (useful in testing).

#gem #Golang

Last updated 1 year ago

tnypxl · @tnypxl
31 followers · 198 posts · Server mstdn.social

@danielquinn if you use cobra, you don’t have to write sub commands. You can just pass everything to root. And it gives you bash completions out of the box.

It’s not great that autocompletions aren’t provided by directly, but given all the different shell flavors one might use or attempt to support, it makes sense why it’s not.

#Golang

Last updated 1 year ago

Tobias Klausmann · @klausman
50 followers · 637 posts · Server mas.to

So I have been looking at v1.21, and while I like the slog package in principle, it really annoys me that there is no way to get a new slog Logger *that I can specify the underlying log.Logger for*.

It seems I have to implement a complete slog.Handler myself, which is six miles of code I don't really want to do anything different (than the default slog.Logger), except using a newly-created log.Logger (with a different flag bitset). Am I missing something?

#Golang

Last updated 1 year ago

The Mighty Git · @TheMightyGit
121 followers · 315 posts · Server mstdn.social

I may have been a _little_ release happy with my rss reader project. 22 releases in *checks watch* three weeks.

It's proving to be a nice distraction for an overly busy brain. Programming is generally relaxing for me because it engages me so fully that those other thoughts can't get a look in.

github.com/TheMightyGit/rssole

#Golang #htmx #googlereader #RSS #rssole

Last updated 1 year ago

tnypxl · @tnypxl
31 followers · 198 posts · Server mstdn.social

The library for is the biggest pain in the ass to work with. Why does `datadogV1.UpdateMonitorRequest` and `datadogV1.Monitor` share the same interface but return two different struct objects? Why not just use `Monitor` for both?

#Golang #datadog

Last updated 1 year ago

Edditoria :mastodon: 愛迪 · @Edditoria
4 followers · 58 posts · Server mas.to

In , how should I write enums function properly, so / LSP warns me for missing case in switch statement? 🤔

#vscode #Golang

Last updated 1 year ago

Miki Tebeka · @tebeka
38 followers · 38 posts · Server mas.to

: Import time/tzdata to embed time zone database in your application. Useful when using "scratch" or "busybox" Docker images.

#gem #Golang

Last updated 1 year ago

Erik Živković · @erik
108 followers · 1320 posts · Server m.zkc.se

Golang dependency management is __fucked__. Right now something called "spacemonkey" is fucking me over because maybe I have the wrong version of OpenSSL? The github issue on their repo says to downgrade to Ubuntu 20. Bitch I'm on mac. is

#Golang #dependency #management #fucked

Last updated 1 year ago

Hana · @hanakim
64 followers · 2 posts · Server mas.to

v0.13.0 will be released next week. See what is coming.🎁🕊️

github.com/golang/tools/releas

Please give it a try and give us feedback. :blobaww:

#vscodego #Golang #gopls

Last updated 1 year ago

tnypxl · @tnypxl
31 followers · 198 posts · Server mstdn.social

forces me to slow down and think about what I'm trying to do. Its brevity is a healthy constraint that I don't get from other languages like or .

#JavaScript #charp #Golang

Last updated 1 year ago

tnypxl · @tnypxl
31 followers · 198 posts · Server mstdn.social

Writing unit tests for where the original didn't consider testability is painful! Because now they have to refactor a bunch of code so it is testable. TDD isn't about writing tests first and the implementation second. It's about being proactive and intentional in your implementation and code quality.

#Golang #tdd #redgreenrefactor #Developer #Code

Last updated 1 year ago