common

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CleanMap

func CleanMap(m map[string]string)

delete item with value=

func PrintMap

func PrintMap(m map[string]string, prefix string, printFunc PrintFunc)

func StructToMap

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

transfer struct to map[string]string

func StructToMapNoRecursion

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

func Strval

func Strval(value interface{}) string

Types

type PrintFunc

type PrintFunc func(format string, a ...interface{}) error

Jump to

Keyboard shortcuts

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