[go-nuts] pgfs: an fs.FS implementation on top of the Postgres Large Objects API

2023-06-22 Thread 'Mohamed Attahri' via golang-nuts
Hey there, Just released https://pkg.go.dev/mohamed.attahri.com/pgfs It's essentially an fs.FS interface implementation that uses Large Objects on Postgres, with all the bells and whistles. It's powerful, because you essentially get a filesystem that's tied to a database transaction, and it c

[go-nuts] Simple pattern-matching library to check and verify the Origin header of a request

2022-07-30 Thread Mohamed Attahri
Hey there – sharing a tiny library we wrote to deal with the Origin header of a request in the context is a CORS context. It handles basic wildcard (*) matching, and should cover most use-cases. Hope it's useful to someone else: https://github.com/posterity/origin Cheers. -- You received this