Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
sam0x17
on Sept 8, 2021
|
parent
|
context
|
favorite
| on:
How We Went All In on sqlc/pgx for Postgres and Go
C has few enough restrictions though that you can for example make a struct and then make an array of that struct. In Go this is like rocket science.
pphysch
on Sept 9, 2021
|
next
[–]
We're never going to get to Mars if `arr := [100]myStruct` qualifies as rocket science.
hactually
on Sept 9, 2021
|
prev
[–]
Which one are you struggling with?
https://play.golang.org/p/P8L0lSMhNgF
https://play.golang.org/p/E8rM7JdrfkD
sam0x17
on Sept 9, 2021
|
parent
[–]
Sorry, meant to say some other data structure, say, a hash table where the key is some custom type / struct and the value is some custom type / struct. Or a binary search tree. Or a linked list.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: