package commonutils

import "github.com/Microsoft/hcsshim/internal/guest/commonutils"

Index

Functions

func DecodeJSONWithHresult

func DecodeJSONWithHresult(r io.Reader, v interface{}) error

DecodeJSONWithHresult decodes the JSON from the given reader into the given interface, and wraps any error returned in an HRESULT error.

func UnmarshalJSONWithHresult

func UnmarshalJSONWithHresult(data []byte, v interface{}) error

UnmarshalJSONWithHresult unmarshals the given data into the given interface, and wraps any error returned in an HRESULT error.

Source Files

utilities.go

Version
v0.12.9 (latest)
Published
Oct 30, 2024
Platform
linux/amd64
Imports
3 packages
Last checked
14 hours ago

Tools for package owners.