of fields in a struct?
no 🙂 why do you need it?
generating some text tables based on a struct bit yikes but for now ive hardcoded the number
bruh, you could just use reflection
This would be a non-issue if Go just allowed multiple entrypoints in one package
obviously i know that's why i specified comptime dumbass it's slow and i hate it
poopy poopoo
you sure just writing a function to do that isn't enough?
write a function to do what
There's a chance you're overengineering the solution to your problem if you require reflection. you could just write a marshaler interface and implement it
this is a false perception coming out of an obsession to defend your language
maybe, maybe not. If Go fits your problem not so well as for example Zig could - consider doing it in Zig with its comptime. Go is not going to change much anymore.
could also do bash
Обсуждают сегодня