ds

package
v0.0.0-...-2e345a2 Latest Latest
Warning

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

Go to latest
Published: May 22, 2019 License: MIT Imports: 6 Imported by: 1

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 StructToMap

func StructToMap(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

func ToBytes

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

func ToBytes2

func ToBytes2(o interface{}, enc string) ([]byte, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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