utils

package
v0.0.0-...-a3e3982 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CamelString

func CamelString(s string) string

camel string, xx_yy to XxYy

func SnakeString

func SnakeString(s string) string

snake string, XxYy to xx_yy , XxYY to xx_yy

func StringInSlice

func StringInSlice(a string, list []string) bool

func Struct2Map

func Struct2Map(obj interface{}) map[string]interface{}

Types

type TypeRegistry

type TypeRegistry map[string]reflect.Type

func (TypeRegistry) NewStruct

func (typeRegistry TypeRegistry) NewStruct(name string) (interface{}, bool)

func (TypeRegistry) RegisterType

func (typeRegistry TypeRegistry) RegisterType(elem interface{})

Jump to

Keyboard shortcuts

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