dat

package
v0.0.0-...-e8acdfa Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

misc data-structure utility functions

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(addr interface{}, b []byte) error

func Load2

func Load2(addr interface{}, b []byte, enc string) error

func LoadStruct

func LoadStruct(addr interface{}, m map[string]interface{}) error

func ToArray

func ToArray(addr interface{}) []interface{}

func ToBytes

func ToBytes(o interface{}) ([]byte, error)

func ToMap

func ToMap(addr interface{}) map[string]interface{}

TODO: this method is very unoptimized It converts to json first, and then loads a map Need to do this directly using reflection

Types

This section is empty.

Jump to

Keyboard shortcuts

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