πŸ‡ΊπŸ‡¦ Go for two :)
1.18K subscribers
22 photos
3 files
184 links
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
加ε…₯钑道
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:

[""]
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!)
Channel name was changed to Β«πŸ‡ΊπŸ‡¦ Go for two :)Β»
"Programming Is Like S*x: One mistake and you have to support it for the rest of your life." β€” Michael Sinz

😭😭😭