Documentation
¶
Index ¶
- func Marshal(payload any) ([]byte, error)
- func MarshalTo(ctx context.Context, file string, payload any, options ...MarshalOption) (err error)
- func ModifyAfterUnmarshal[T any](modifier func(target *T)) *json.Unmarshalers
- func Unmarshal(in []byte, out any) error
- func UnmarshalFrom(ctx context.Context, file string, out any, unmarshalers ...*json.Unmarshalers) (err error)
- type MarshalOption
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ModifyAfterUnmarshal ¶
func ModifyAfterUnmarshal[T any](modifier func(target *T)) *json.Unmarshalers
func UnmarshalFrom ¶
Types ¶
type MarshalOption ¶
type MarshalOption func(opts *marshalOptions)
func UserOnlyFilePerms ¶
func UserOnlyFilePerms() MarshalOption
UserOnlyFilePerms is for a file that holds a credential, or a token minted from one.
Click to show internal directories.
Click to hide internal directories.