home.social

#golang — Public Fediverse posts

Live and recent posts from across the Fediverse tagged #golang, aggregated by home.social.

  1. I'm sure many older programmers will grunt at seeing this mentioned, but as much as AI annoys me just as much as the next guy (because of AI slop, increased hardware costs and stuff like that)...

    ... I can't deny that it feels like it's easier than ever to start learning to program these days.

    You've got yourself a personal tutor who guides you through step by step and answers all of your questions you might be wondering.

    You'll never be completely stuck.

    Learning #Golang with Gemini atm

  2. After reading about Hyrum-proofing in encoding/json/v2 I made a tiny errors compatible module doing exactly that.

    codeberg.org/vyskocilm/herrors

    #golang

  3. 𝗚𝗶𝘁𝗲𝗮:

    #Git #Golang

    thewhale.cc/posts/gitea

    Gitea is a painless self-hosted Git service. Gitea is a community managed fork of Gogs, lightweight code hosting solution written in Go and published under the MIT license.

  4. 𝗚𝗶𝘁𝗲𝗮:

    #Git #Golang

    thewhale.cc/posts/gitea

    Gitea is a painless self-hosted Git service. Gitea is a community managed fork of Gogs, lightweight code hosting solution written in Go and published under the MIT license.

  5. 𝗚𝗶𝘁𝗲𝗮:

    #Git #Golang

    thewhale.cc/posts/gitea

    Gitea is a painless self-hosted Git service. Gitea is a community managed fork of Gogs, lightweight code hosting solution written in Go and published under the MIT license.

  6. 𝗚𝗶𝘁𝗲𝗮:

    #Git #Golang

    thewhale.cc/posts/gitea

    Gitea is a painless self-hosted Git service. Gitea is a community managed fork of Gogs, lightweight code hosting solution written in Go and published under the MIT license.

  7. #gocon #goconjp attendee lanyard is an unpopulated PCB you can solder parts on and light it up with some rainbow leds driven by #tinygo #golang

  8. On my way to FyneConf.

    Stopped at Antwerp Centraal train station. It is gorgeous.

  9. Документация, которая не врёт

    С документацией к API есть две крайности, и обе плохие: написанная руками врёт через полгода, сгенерированная целиком стирает всё осмысленное, что в неё написали. Я перестал выбирать между ними и поделил файл: структура принадлежит коду и синхронизируется без спроса, проза принадлежит человеку и не трогается никогда. Заодно оказалось, что документацию можно проверять как golden-файл, и что проверить нельзя прозу, а вот её отсутствие можно.

    habr.com/ru/articles/1080460/

    #openapi #swagger #go #golang #документация_api #кодогенерация #rest_api #golden_tests #рефлексия #gorib

  10. Документация, которая не врёт

    С документацией к API есть две крайности, и обе плохие: написанная руками врёт через полгода, сгенерированная целиком стирает всё осмысленное, что в неё написали. Я перестал выбирать между ними и поделил файл: структура принадлежит коду и синхронизируется без спроса, проза принадлежит человеку и не трогается никогда. Заодно оказалось, что документацию можно проверять как golden-файл, и что проверить нельзя прозу, а вот её отсутствие можно.

    habr.com/ru/articles/1080460/

    #openapi #swagger #go #golang #документация_api #кодогенерация #rest_api #golden_tests #рефлексия #gorib

  11. Документация, которая не врёт

    С документацией к API есть две крайности, и обе плохие: написанная руками врёт через полгода, сгенерированная целиком стирает всё осмысленное, что в неё написали. Я перестал выбирать между ними и поделил файл: структура принадлежит коду и синхронизируется без спроса, проза принадлежит человеку и не трогается никогда. Заодно оказалось, что документацию можно проверять как golden-файл, и что проверить нельзя прозу, а вот её отсутствие можно.

    habr.com/ru/articles/1080460/

    #openapi #swagger #go #golang #документация_api #кодогенерация #rest_api #golden_tests #рефлексия #gorib

  12. I mostly wrapped up my #rbac implementation today. After reading through the #owasp recommendations for building rbac I can proudly say that the implementation is about what, 10 LOC? You be the judge, I cant count. What you don't see is the map that is 500+ LOC that makes it all work.

    #homelab #selfhosted #golang

  13. Latest stable release for ordinary and ordinaryd: v0.11.0

    With this release we introduce multi-language support for ordinary-functions

    https://codeberg.org/ordinarylabs/Ordinary/releases/tag/v0.11.0

    (We now build for #FreeBSD on release, as well)

    #ordinary #wasi #webassembly

  14. Are you multilingual?

    Sriracha, a free and open source (GNU LGPL) imageboard and forum server, supports changing the language of the management panel and individual boards.

    If you would like to help Sriracha support more locales, please visit the translation website. Translations are submitted online by individual string (word or phrase).

    translate.codeberg.org/project

    #translation #foss #opensource #language #multilingual #bilingual #translate #gnu #golang #imageboard #forums #server #free #libre

  15. Выпекаем тесты на Go с Testo: делимся нашим open-source-фреймворком

    Привет, Хабр! Я Вадим, разработчик QA-платформы в Ozon. Стандартного testing в Go хватает юнит-тестам, но большим end-to-end-сценариям нужно больше: Allure-отчёты, плагины, Suite’ы, параметризация, параллельные запуски. Мы не нашли в Go-экосистеме инструмент, который закрывал бы всё это, не ломая привычный go test , — и написали свой: Testo. Сегодня на нём работает больше 60 тысяч тестов для 500+ сервисов Ozon, а теперь мы опубликовали его в open source . В статье покажу Testo и плагины в деле: как небольшой Go-тест шаг за шагом превращается в полноценный e2e-сценарий с отчётами, фикстурами, хуками и шагами, сохраняя привычный вид.

    habr.com/ru/companies/ozontech

    #go #open_source #qa #allure #golang #qa_automation #тестирование #автотесты #фреймворк #ozon_tech

  16. Another revision or two of the `driveinfo` command done and I think I have almost all of the information. Spent some time getting EBR and logical partitions showing everything it needed to as well as being able to follow the logical partition chain using either CHS or LBA.

    ```
    [part 05] PartitionType: 0x83
    PartitionTypeDesc: Linux
    Primary/Logical: logical
    BootIndicatorFlag: 0x00
    CurrentPartition:
    FirstAbsoluteSectorLBA: 2048 (413696)
    SectorsInPartition: 204800
    AddressFirstAbsoluteCHS: [25 191 39]
    AddressLastAbsoluteCHS: [38 127 25]
    PartitionSize: 104857600
    NextPartition:
    FirstAbsoluteSectorLBA: 206848 (618496)
    SectorsInPartition: 206848
    AddressFirstAbsoluteCHS: [38 127 26]
    AddressLastAbsoluteCHS: [51 95 44]
    PartitionSize: 105906176
    ```

    Link: git.jamesthebard.net/jweatherl

    #gpt #mbr #ebr #golang #programming

  17. 📝 Designing a listen later pipeline #development #webdev #tech #rss #preact #golang #audio #audiobookshelf

    I've had this long, long running relationship with bookmarking and read it later services. I'll commit to one, excited about whatever feature set it offers and then, without fail, my list grows and grows and grows and grows. I archive things to reset, repeat and then move to a different service. The only thing that's...

    coryd.dev/posts/2026/designing

  18. cfzt: как я обернул Zero Trust Cloudflare Tunnel в одну команду и зачем туда пришлось добавить вотчдог для QUIC

    В домашней инфраструктуре у меня крутится десяток сервисов: Grafana, Zabbix, n8n, Navidrome, ollama, БД, пара дашбордов и тестовых API. Каждый раз, когда нужно было выставить новый сервис наружу, я открывал дашборд Cloudflare и руками проходил один и тот же путь: создать туннель, прописать ingress‑правило, добавить DNS записи, настроить Zero Trust Access. Минут пятнадцать, если без ошибок. С ошибками — больше, потому что один неверно скопированный tunnel ID ломает всю цепочку и приходится откатывать вручную. На какой‑то раз стало понятно, что это рутина, которую можно свернуть в одну команду. Так появился cfzt — CLI на Go, который сейчас умеет: zt up grafana 3000 И через несколько секунд grafana.domain.com смотрит на localhost:3000 через Cloudflare Tunnel, с настроенным Zero Trust Access и systemd сервисом, который переживет ребут. Полюбопытствовать

    habr.com/ru/articles/1050380/

    #golang #network #tunnel #cloudflare #сети #cli #devtools #zerotrust #selfhosted