decoder

package
v0.0.0-...-94a580d Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package decoder has a collection of mapstructure hooks to help with decoding an interface into golang struct

Index

Constants

This section is empty.

Variables

Functions

func BoolToBoolFunc

func BoolToBoolFunc() mapstructure.DecodeHookFunc

BoolToBoolFunc is a mapstructure hook that looks for an incoming bool mapped to a Bool and does the translation.

func Float64ToUintFunc

func Float64ToUintFunc() mapstructure.DecodeHookFunc

Float64ToUintFunc is a mapstructure hook that looks for an incoming float64 mapped to a Uint and does the translation.

func StringToDurationFunc

func StringToDurationFunc() mapstructure.DecodeHookFunc

StringToDurationFunc is a mapstructure hook that looks for an incoming string mapped to a Duration and does the translation.

func StringToStringFunc

func StringToStringFunc() mapstructure.DecodeHookFunc

StringToStringFunc is a mapstructure hook that looks for an incoming string mapped to a String and does the translation.

Types

This section is empty.

Jump to

Keyboard shortcuts

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