🇺🇦 Go for two :)


Channel's geo and language: Ukraine, Russian
Category: Technologies


Telegram channel about tricks and engineering practices in the Go programming language over a cup of coffee ☕️.
author: @a_soldatenko
personal blog: https://asoldatenko.org
#golang #go #kubernetes #debugging

Related channels  |  Similar channels

Channel's geo and language
Ukraine, Russian
Statistics
Posts filter


"Programming Is Like S*x: One mistake and you have to support it for the rest of your life." — Michael Sinz

😭😭😭




After releasing go1.24, we can manage tools as dependencies!

Here is very good step by step article about how to do it https://www.alexedwards.net/blog/how-to-manage-tool-dependencies-in-go-1.24-plus

Also it includes example how to add tools to seperate go.mod file (TIL!)




TIL: strings.Split returns [""] if s does not contain sep and sep is not empty 😅

package main

import (
"fmt"
"strings"
)

func main() {
fmt.Printf("%q\n", strings.Split("", ","))
}

Split returns a slice of length 1 whose only element is s:

[""]










Old but still worth to read about why one shouldn;t defer Close() on writable files:

https://www.joeshaw.org/dont-defer-close-on-writable-files/




What do you think if I start posting not only about Golang, but some related topics like k8s/containers?
Poll
  •   Yes
  •   No
  •   Strong Yes
  •   i don't care
238 votes


For all GO haters :) https://juli1.substack.com/p/why-i-fell-in-love-with-go

Nice quote and summary:
>Technologies like JavaScript or Go are like a good burger: it’s an option that the majority understand and choose regularly. It may not be the most elegant option, but it does the job and allows us to focus on problems that matter.















20 last posts shown.