cast

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2020 License: MIT Imports: 3 Imported by: 0

README

Documentation

Overview

Package cast convert types safely and drop incompatible types during conversion

it is inspired by https://github.com/spf13/cast

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StringMapToStructViaJSON

func StringMapToStructViaJSON(m map[string]interface{}, s interface{}) error

func StringMapToStructViaYAML

func StringMapToStructViaYAML(m map[string]interface{}, s interface{}) error

func ToStringMap

func ToStringMap(interfaceMap map[interface{}]interface{}) map[string]interface{}

ToStringMap converts a map to use string key, non string key will be ignored

Types

This section is empty.

Jump to

Keyboard shortcuts

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