mof

package module
v0.0.0-...-2bb6639 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 18, 2015 License: MIT Imports: 11 Imported by: 0

README

mof

Package mof parses and marshals Managed Object Format (MOF) structures.

docs

http://godoc.org/github.com/StackExchange/mof

Documentation

Overview

Package mof parses and marshals Managed Object Format (MOF) structures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unmarshal

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

Unmarshal parses the MOF-encoded data and stores the result in the value pointed to by v.

Unmarshal allocates maps and slices as necessary.

To unmarshal MOF into an interface value, Unmarshal stores a map[string]interface{} in the interface value.

To unmarshal MOF into a struct, Unmarshal matches incoming object keys to either the struct field name or its tag, preferring an exact match but also accepting a case-insensitive match. The encoding/json package is used to perform this matching, so json struct tags are honored.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL