array

package
v1.0.1009 Latest Latest
Warning

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

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

Documentation

Overview

Example
ArrGet(arrData, "b.hhTy3.666.3")

Index

Examples

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 any, key string) bool

判断是否存在

func Find added in v1.0.1002

func Find(source any, key string) any

查找

func Get added in v1.0.1002

func Get(source 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 any, key string) bool

判断是否存在

func (Arr) Find

func (this Arr) Find(source any, key string) any

查找

func (Arr) Get

func (this Arr) Get(source 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