ch
Feedback

不要被骗子欺骗!Telemetrio 会找到并标记这些频道 👉 如果想查看标记,请订阅

🇺🇦 Go for two :)

🇺🇦 Go for two :)

前往频道在 Telegram

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

显示更多
未指定国家技术与应用41 331
1 095
订阅者
无数据24 小时
无数据7 天
无数据30 天
帖子存档
New package with a generic set type has been accepted :) https://github.com/golang/go/issues/69230
package set // import "golang.org/x/exp/collection/set"

Package set defines Set, an experimental prototype for what may become the
canonical representation of a set recommended for use in public APIs.

A Set[E] is transparently represented as a map[E]struct{}, and so it may be used
as the operand of a range loop.

Example:

    var x, y, z set.Set[int]
    x = set.Of(1, 2, 3)    // "{1, 2, 3}"
    y = set.Of(3, 4, 5)    // "{3, 4, 5"}
    z = x.Intersection(y)  // "{3}"
    for elem := range z {
      println(elem)    // "3"
    }
// more examples https://github.com/golang/go/issues/69230#issuecomment-6040903375
06 11月, 04:58

„Interesting times“ What should we do with CLs generated by AI? https://groups.google.com/g/golang-dev/c/4Li4Ovd_ehE/m/UU87HnL5DgAJ?pli=1
21 2月, 03:15

Hiring Challenge: Smallest #golang Websocket Client https://dyte.io/blog/hiring-challenge-smallest-golang-websocket-client/ by @dyte_io
25 1月 2024, 09:57

Go’s CompareAndSwap is not always Compare-and-swap >Go's standard package sync/atomics provides programmers with functions to use the underlying CPU-level atomic operations such as compare-and-swap (CAS), through atomic.CompareAndSwapT (where T is an integer type). > Problem: Not all CPU architectures offers a CAS instruction to rely on to implement atomic.CompareAndSwapT. However, Go must compile that function code to something semantically equivalent—let's see what. https://lu.sagebl.eu/notes/go-cas/
09 1月 2024, 11:27

Discussion of 1BRC in Go https://github.com/gunnarmorling/1brc/discussions/67 Context: https://twitter.com/gunnarmorling posted a problem https://www.morling.dev/blog/one-billion-row-challenge/ the idea is pretty simple and from another side not so simple: >write a Java program for retrieving temperature measurement values from a text file and calculating the min, mean, and max temperature per weather station. There’s just one caveat: the file has 1,000,000,000 rows!
05 1月 2024, 03:30

Slides of my talk from #kcdaustria about debugging #golang apps inside #k8s cluster https://drive.google.com/file/d/1-6ERQda23o7OiLHziz4wwgvdFWS0kyv8/view And repo with samples/Dockerfiles for try it out!
28 9月 2023, 04:14

Finally we can use it without many lines of / and && Tl;dr: With all that out the way, we can use a heredoc, executing two commands in the same RUN!:
RUN <<EOF
echo "Hello" >> /hello
echo "World!" >> /hello
EOF
-> https://www.docker.com/blog/introduction-to-heredocs-in-dockerfiles/
20 9月 2023, 05:20

"I thought I understood how iteration over an array works but apparently not in Golang" https://medium.com/@haaawk/i-thought-i-understood-how-iteration-over-an-array-works-but-apparently-not-in-golang-441a7abd6540
19 9月 2023, 04:13

24 8月 2023, 05:59

print(“lol”) doubled the speed of my #golang function 😂 https://medium.com/@ludirehak/printing-lol-doubled-the-speed-of-my-go-code-e32e02fc3f92
24 8月 2023, 05:59

05 6月 2023, 06:57

Repo with some examples of concurrency patterns in Golang -> https://github.com/lotusirous/go-concurrency-patterns
11 5月 2023, 02:10

08 4月 2023, 03:39

Друзі! Ви, напевно, пам'ятаєте, як я робив збори для хлопців із ЗСУ та інших підрозділів. Хлопців, яких знаю особисто. Не так
+3
Друзі! Ви, напевно, пам'ятаєте, як я робив збори для хлопців із ЗСУ та інших підрозділів. Хлопців, яких знаю особисто. Не так давно ми разом з вами вже зробили велику справу — зібрали на два Mavic 3 Combo, Starlink і інші, не меньш важливі на війні штуки. Військові за це ДУЖЕ вдячні вам всім! Але добрих справ в такий час не буває забагато. Маємо запит на автівку для наших воїнів ССО. Ціль — 260 000 гривень. Допоможемо хлопцям створити для окупанта пекло на нашiй землі. Кожна гривня, кожен репост — ще один крок до нашої перемоги. Дуже вам вдячний! 🔗Посилання на банку https://send.monobank.ua/jar/13NzQaQmS 💳Номер картки банки 5375 4112 0530 6157 Paypal: f1ashhimself@gmail.com
04 4月 2023, 04:58

Go linters configuration, the right version. https://olegk.dev/go-linters-configuration-the-right-version
28 3月 2023, 03:10