ong icon indicating copy to clipboard operation
ong copied to clipboard

ong, is a Go http toolkit.

Results 59 ong issues
Sort by recently updated
recently updated
newest added

wrapper around stdlib Join

- Fixes: https://github.com/komuw/ong/issues/436 Hat tip: - https://jub0bs.com/posts/2023-02-08-fearless-cors/ : This is a really great blogpost on all things CORS.

https://github.com/golang/go/issues/67057 For use in `ong/id`

- https://jub0bs.com/posts/2023-02-08-fearless-cors/ (a) update the middleware to properly check for a pre flight request, according to the fetch standard (b) validate allowed origins (c) do more validations, like for credentials...

- https://gajus.com/blog/avoiding-visually-ambiguous-characters-in-ids -

- https://github.com/ixtendio/gofre/tree/main/auth

``` I'm proposing we make crypto/rand throw (irrecoverably crash the program) if an error occurs, and document that the error return values of crypto/rand.Read and crypto/rand.Reader.Read are always nil. This...

``` Setting the [HandlerOptions.Level] to an `slog.Level` fixes the minimum level throughout its lifetime. Setting it to an `slog.LevelVar` allows the level to be varied dynamically. A `slog.LevelVar` is safe...

https://github.com/komuw/ong/blob/ca6f5d216e6f974d33976c8b37bd4c20f4273d39/log/log.go#L52 This would allow people to increase/decrease the size of log buffer at runtime. Imagine if your app is getting lots of errors and you want to include longer duration...

We have a debug/pprof server at; https://github.com/komuw/ong/blob/b92e69a03db65758d69c9167465c362ddbe5b0b9/server/pprof.go#L19 We should add more stats to it. Look at how `golang/pkgsite`[1][2] does it; 1. https://github.com/golang/pkgsite/blob/8b9886cdffa22a4f43206ac784fa1646fd0b6da6/internal/memory/memory.go 2. https://github.com/golang/pkgsite/blob/0b288825799277442e38232a9e9d079bc5956ef4/internal/frontend/server.go#L217-L240