g2util

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileAbsPath added in v2.0.2

func FileAbsPath(path string) string

FileAbsPath ...

func InjectPopulate

func InjectPopulate(values ...interface{})

InjectPopulate ...

func TextTemplateMustParse added in v2.0.2

func TextTemplateMustParse(text string, data interface{}) (result string)

TextTemplateMustParse ...

func ValueIndirect added in v2.0.2

func ValueIndirect(val reflect.Value) reflect.Value

ValueIndirect ...值类型

Types

type Map added in v2.0.2

type Map map[string]interface{}

Map ...

func Bean2Map added in v2.0.2

func Bean2Map(bean interface{}) (Map, error)

Bean2Map ...

func (Map) GetBool added in v2.0.2

func (m Map) GetBool(key string) bool

GetBool ...

func (Map) GetInt added in v2.0.2

func (m Map) GetInt(key string) int

GetInt ...

func (Map) GetInt64 added in v2.0.2

func (m Map) GetInt64(key string) int64

GetInt64 ...

func (Map) GetString added in v2.0.2

func (m Map) GetString(key string) string

GetString ...

func (Map) MarshalBinary added in v2.0.2

func (m Map) MarshalBinary() (data []byte, err error)

MarshalBinary ...

func (Map) MergeTo added in v2.0.2

func (m Map) MergeTo(mp Map)

MergeTo ...

func (Map) ToBean added in v2.0.2

func (m Map) ToBean(bean interface{}) (err error)

ToBean ...

func (*Map) UnmarshalBinary added in v2.0.2

func (m *Map) UnmarshalBinary(data []byte) error

UnmarshalBinary ...

Jump to

Keyboard shortcuts

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