structmap

package
v0.0.0-...-1a246bd Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsMap

func AsMap(v interface{}) map[string]interface{}

func AsStruct

func AsStruct(input, output interface{}) error

Types

type AssetWrapper

type AssetWrapper struct {
	*asset.Asset
	UnmarshaledData proto.Message
}

func NewAssetWrapper

func NewAssetWrapper(a *asset.Asset) (*AssetWrapper, error)

func (*AssetWrapper) Encode

func (w *AssetWrapper) Encode() map[string]interface{}

func (*AssetWrapper) EncodeWithoutTypes

func (w *AssetWrapper) EncodeWithoutTypes() (map[string]interface{}, error)

func (*AssetWrapper) OverwriteWith

func (w *AssetWrapper) OverwriteWith(m map[string]interface{}) error

Jump to

Keyboard shortcuts

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