Community chat: https://t.me/hamster_kombat_chat_2
Twitter: x.com/hamster_kombat
YouTube: https://www.youtube.com/@HamsterKombat_Official
Bot: https://t.me/hamster_kombat_bot
Game: https://t.me/hamster_kombat_bot/
Last updated 3 months, 2 weeks ago
Your easy, fun crypto trading app for buying and trading any crypto on the market.
📱 App: @Blum
🆘 Help: @BlumSupport
ℹ️ Chat: @BlumCrypto_Chat
Last updated 3 months, 1 week ago
Turn your endless taps into a financial tool.
Join @tapswap_bot
Collaboration - @taping_Guru
Last updated 5 days, 5 hours ago
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:
TIL: a % 128 = 0 is the same as a & 127 = 0
'Which is a faster operation since it just requires doing the AND and not the whole division and remainder comparison' @jesusvazquezp
from https://github.com/prometheus/prometheus/pull/14118#pullrequestreview-2068077407
GitHub
Check context every 128 labels instead of 100 by colega · Pull Request #14118 · prometheus/prometheus
Follow up on #14096 As promised, I bring a benchmark, which shows a very small improvement if context is checked every 128 iterations of label instead of every 100. It's much easier for a compu...
proposal: reflect: add TypeAssert
likely accepted ? ')
https://github.com/golang/go/issues/62121
GitHub
proposal: reflect: add TypeAssert · Issue #62121 · golang/go
Consider the following benchmark: func Benchmark(b *testing.B) { v := reflect.ValueOf(new(time.Time)).Elem() b.ReportAllocs() for i := 0; i < b.N; i++ { \_ = v.Interface().(time.Time) } } This cu...
Community chat: https://t.me/hamster_kombat_chat_2
Twitter: x.com/hamster_kombat
YouTube: https://www.youtube.com/@HamsterKombat_Official
Bot: https://t.me/hamster_kombat_bot
Game: https://t.me/hamster_kombat_bot/
Last updated 3 months, 2 weeks ago
Your easy, fun crypto trading app for buying and trading any crypto on the market.
📱 App: @Blum
🆘 Help: @BlumSupport
ℹ️ Chat: @BlumCrypto_Chat
Last updated 3 months, 1 week ago
Turn your endless taps into a financial tool.
Join @tapswap_bot
Collaboration - @taping_Guru
Last updated 5 days, 5 hours ago