You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(jsonutils): add LoadAs and MarshalAs functions
This change adds the following functions to the jsonutils package. Unit tests
are also provided.
`LoadAs[T any](path string) result.Result[T]` reads the content from the given
path and ummarshals it into a result of a new instance of T.
`UnmarshalAs[T any](content []byte) result.Result[T]` unmarshals the content
from the given byte slice into a result of a new instance of T.
Signed-off-by: m-d-key <[email protected]>
0 commit comments