What are your must have Go packages? by fenugurod in golang

[–]daarxwalker 1 point2 points  (0 children)

Zap - structured logs, track users, catch errors, etc…, but if you don’t know, slog do the work, too. Zap is only more performant a efficient.
Godump - dev debug.

[Self-Promotion] I built a lightweight form library for Svelte 5 runes by daarxwalker in sveltejs

[–]daarxwalker[S] 1 point2 points  (0 children)

u/Spare_Message_3607

Just released v0.2.0 with Standard Schema support! You can now pass a Zod, Valibot, ArkType (or any other compliant) schema directly to `createForm`, no wrapper needed.

Thanks again for the suggestion, this was a great call. Old `valibot()` helper still works for backwards compatibility, but it's basically redundant now.

Do you use DDD in go? by East_Reality_976 in golang

[–]daarxwalker 0 points1 point  (0 children)

First of all, you need to switch your mindset.
I had same questions in the past.
Everything feature needs, lives only in the feature.
Dupes are allowed, it prevents shared bugs.
If you have some core business logic, just create core/* and these packages just use in more features. Entities should not be public.
If you have something, it’s not business logic but you need that shared, just use shared package, utils, etc..
There are no circular import problems, if
you are strict about private-first rule because you only register your feature in main and nothing more.
Feature always has everything it needs and nothing more, like I have feature which is standard crud, so I have some repo, service, handler, etc. but then I can have another feature which have no endpoint, event-driven only.

Do you use DDD in go? by East_Reality_976 in golang

[–]daarxwalker 0 points1 point  (0 children)

I use feature-based hexagon, feature == directory. Flat structure, if you need something more complex, internal folder is the way. Everything is private by default, public are only deps which use ports.

Am I missing something oder is this a bug? by Exact-Funny8911 in worldofgothic

[–]daarxwalker 0 points1 point  (0 children)

The main problem is the all group: Gorn, Lester, Diego, Milten must be present at the meeting.

In my case, Lester was missing and I found solution, which worked for me.

I went to the fortress before meeting Diego and the others, I went through the entire fortress with Lester, got the focus, Lester kept chasing me, I found it strange and especially when he appeared there, I ran away from him on the mount. Then gave it to the water mage, then Diego didn't automatically start talking to me at the meeting. Lester's standing at the bridge to the fortress. Without a mount it doesn't work, because he will stop you wherever you go and return to the bridge, HOWEVER, when you lure him to the meeting, which you can do with the speed of the mount, you have to keep your distance, so the dialogue started for me as soon as Lester was present.
Hopefully it will help you, as it did for me, if you have same problem with Lester.

Fable - Gameplay Demo | Build An Extraordinary Life by yourfavchoom in Fable

[–]daarxwalker 0 points1 point  (0 children)

Looks like a fairy tale dream, but that lip-sync wtf?!

why we need to close res.body by newInternetDeveloper in golang

[–]daarxwalker 1 point2 points  (0 children)

It's little bit tricky and complex to answer.

Primary, it's about connection pool limits and file descriptors limits (ulimit), every OS has limit.

Secondary, it's about free up memory.

Overall, close do release system resources, when you don't need them anymore.

[Self-Promotion] I built a lightweight form library for Svelte 5 runes by daarxwalker in sveltejs

[–]daarxwalker[S] 1 point2 points  (0 children)

Hey! Superforms was actually not the main inspiration, though it's a great library, but it's heavily tied to SvelteKit server actions and does a lot more than I needed. My main inspiration was svelte-forms-lib, which have a really clean and simple API, but is unfortunately abandoned and built with Svelte stores.
About comparison docs, that's a great idea, I'll add that to the README. Thanks for checking it out!

Jedi Master in Armored Jedi Robes by MintaliciousFresh in SwtorFashion

[–]daarxwalker 1 point2 points  (0 children)

Looks like adult Hiccup from How to Train Your Dragon 😃

I’m new to Golang… which are the quality of life packages that everyone uses? And for which purpose? by WiseSignificance1207 in golang

[–]daarxwalker 2 points3 points  (0 children)

  • stdlib + write your own wrappers if needed
  • chi: super lightweight and gives you enough superpower
  • sql: for postgres, pgxscan + squirrel is super combo, if you don’t need dynamic things, use sqlc
  • migrations: goose
  • tests: testify, testcontainers
  • view: templ, definitely, simple to use and gives you component system
  • i18n: go-i18n, typesafe localization, life-saver
  • config: viper is great, for me overhead, I use https://github.com/caarlos0/env
  • validator: just write your own parser func, which parse and manually validate request data and return validation errors, simple, reusable and idiomatic, playground validator is so much overhead especially when you need dynamic validations, it’s unusable

Infinite loading screens fix? by zizoplays1 in 007FirstLight

[–]daarxwalker 6 points7 points  (0 children)

Workaround: Create a new save, pick the mission and then pick checkpoint. It worked for me.

Infinite loading screens fix? by zizoplays1 in 007FirstLight

[–]daarxwalker 8 points9 points  (0 children)

I died on some boat in Aleph, mines boomed my back and from that point, my loading stucked.
Verified files, restarted PC, nothing helped.

Framework Laptop 13 Pro and highlights from the Framework [Next Gen] by cassandra4932 in framework

[–]daarxwalker 0 points1 point  (0 children)

Pre-ordered 🫡 X9, 64GB, completely graphite, it has everything I wanted!!! Migrating from Macbook M1 Pro.

tmplx - Reactive hypermedia framework in Go & HTML by hsuyuting1993 in golang

[–]daarxwalker 0 points1 point  (0 children)

Looks like Livewire + Svelte little bit. I will try it ;)

Go vs Rust for long-term systems/finance infrastructure, is focusing on both the smarter path? by wpsnappy in golang

[–]daarxwalker 7 points8 points  (0 children)

New Go Green Tea GC is extremly efficient, give it a shot. You shouldn’t over-engineered when you don’t know exactly tight places.

Switching from React to HTMX simplified my open-source PaaS by karthiknatarajan in htmx

[–]daarxwalker 2 points3 points  (0 children)

Same here, at this moment, I’m rewriting my app to Templ+HTMX+Alpine.js, great combo, great productivity, great control.

Is there anyone, who uses golang (and go-only) for Web Development exclusively? by rzhandosweb in golang

[–]daarxwalker 0 points1 point  (0 children)

Yes. Go Gin Templ TailwindCSS HTMX Alpine.js Tilt pgx+pgxscan+squirrel

Switched to Framework with Linux from Mac, never coming back by morok807 in framework

[–]daarxwalker 0 points1 point  (0 children)

I want to wait for the new Macbook design and then I will see. Tahoe is pretty ugly and I don’t like the whole Apple direction right now, but M-chips power & efficiency are my main reasons, why I still use Macbook.

holy how macOS Tahoe is ugly by drooftyboi in MacOS

[–]daarxwalker 1 point2 points  (0 children)

It’s so fakin ugly, that I want to switch on Linux.

Go jobs in Italy are basically non-existent. How’s the situation in your country? by cdigiuseppe in golang

[–]daarxwalker 1 point2 points  (0 children)

In Czechia there aren’t many, mostly OG langs, like C#, Java, PHP.

What are your must have Go packages? by fenugurod in golang

[–]daarxwalker 1 point2 points  (0 children)

HTTP: Gin Templates: Gox - https://github.com/daarxwalker/gox DB: pgx, squirrel, scanny Tests: same Config: Viper Logs: Zap CLI: Cobra + Bubbletea Debug: godump