array

package
v1.0.1005 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ArrExists = Exists
View Source
var ArrFind = Find
View Source
var ArrGet = Get

Functions

func Exists added in v1.0.1002

func Exists(source map[string]any, key string) bool

判断是否存在

func Find added in v1.0.1002

func Find(source map[string]any, key string) any

查找

func Get added in v1.0.1002

func Get(source map[string]any, key string, defVal ...any) any

获取

Types

type Arr

type Arr struct {
	// contains filtered or unexported fields
}

*

  • 获取数组数据 *
  • @create 2022-5-3
  • @author deatil

func New

func New() Arr

构造函数

func NewArr added in v1.0.1002

func NewArr() Arr

构造函数

func (Arr) Exists added in v1.0.1002

func (this Arr) Exists(source map[string]any, key string) bool

判断是否存在

func (Arr) Find

func (this Arr) Find(source map[string]any, key string) any

查找

func (Arr) Get

func (this Arr) Get(source map[string]any, key string, defVal ...any) any

获取

func (Arr) WithKeyDelim

func (this Arr) WithKeyDelim(data string) Arr

设置 keyDelim

Jump to

Keyboard shortcuts

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