mirror of
https://github.com/therootcompany/golib.git
synced 2026-03-28 18:15:30 +00:00
Some issuers (e.g. PaperOS) emit `scope` as a JSON array (`[]` or `["openid","profile"]`) instead of the RFC 6749 space-delimited string. SpaceDelimited.UnmarshalJSON now accepts both forms; a JSON array is converted to the equivalent slice. Other non-string, non-array values still return an error. Adds test cases: array_values and array_empty.
golib
Sometimes a little copying, sometimes a little dependency. Too small for their own repos.
The default branch is dev, but the stable, versioned tags are based on main.
Also, my Go Cheatsheet:
Languages
Go
100%