package commonutils
import "github.com/Microsoft/opengcs/service/libs/commonutils"
Index ¶
- func DecodeJSONWithHresult(r io.Reader, v interface{}) error
- func NewStackHook(levels []logrus.Level) logrus.Hook
- func UnmarshalJSONWithHresult(data []byte, v interface{}) error
Functions ¶
func DecodeJSONWithHresult ¶
DecodeJSONWithHresult decodes the JSON from the given reader into the given interface, and wraps any error returned in an HRESULT error.
func NewStackHook ¶
NewStackHook creates a new hook to append the stack to log messages.
func UnmarshalJSONWithHresult ¶
UnmarshalJSONWithHresult unmarshals the given data into the given interface, and wraps any error returned in an HRESULT error.
Source Files ¶
- Version
- v0.3.8
- Published
- Jun 4, 2018
- Platform
- darwin/amd64
- Imports
- 7 packages
- Last checked
- 4 minutes ago –
Tools for package owners.