1
0
Fork
You've already forked go-structr
0
library with a series of performant data types with automated struct value indexing
Go 100%
2025年12月03日 11:01:49 +00:00
cache.go tweaks 2025年08月19日 16:06:49 +01:00
cache_test.go fix zero value logic 2025年08月21日 17:17:05 +01:00
common_test.go fix zero value logic 2025年08月21日 17:17:05 +01:00
go.mod update deps 2025年12月03日 11:01:49 +00:00
go.sum update deps 2025年12月03日 11:01:49 +00:00
index.go last version bump for now i swear 2025年10月03日 12:10:43 +01:00
item.go last version bump for now i swear 2025年10月03日 12:10:43 +01:00
key.go more tweaks 2025年08月19日 19:03:49 +01:00
LICENSE first commit 2024年01月05日 17:47:37 +00:00
list.go last version bump for now i swear 2025年10月03日 12:10:43 +01:00
map.go rewrite timeline.select() functions, fix timeline.insert(), some other tweaks 2025年02月18日 15:14:57 +00:00
queue.go start upgrading ready for Go1.25 support 2025年08月18日 17:18:08 +01:00
queue_ctx.go start adding Timeline{} type, update a lot of small bits 2025年02月13日 13:23:14 +00:00
queue_ctx_test.go fix zero value logic 2025年08月21日 17:17:05 +01:00
queue_test.go fix zero value logic 2025年08月21日 17:17:05 +01:00
README.md fix zero value logic 2025年08月21日 17:17:05 +01:00
runtime.go improved code comments 2025年08月21日 18:10:15 +01:00
timeline.go provide access to atomically updated head / tail timeline values 2025年10月13日 08:08:38 +01:00
timeline_test.go provide access to atomically updated head / tail timeline values 2025年10月13日 08:08:38 +01:00

go-structr

A library with a series of performant data types with automated struct value indexing. Indexing is supported via arbitrary combinations of fields, and in the case of the cache type, negative results (errors!) are also supported.

Under the hood, go-structr maintains a hashmap per index, where each hashmap is keyed by serialized input key. This is handled by the incredibly performant serialization library go-mangler/v2, which at this point in time supports all concrete types, so feel free to index by by almost anything!

See the docs for more API information.

Notes

This is a core underpinning of GoToSocial's performance.