datapath

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmptyString

func EmptyString(value string) bool

EmptyString 判断字符串在去除空白后是否为空。

func Lookup

func Lookup(root interface{}, path string) (interface{}, bool)

Lookup 按点分路径读取 map 数据。

它只处理 FlowContext 当前支持的 JSON 对象形态,避免把模板表达式能力扩张成 另一套复杂查询语言。

func Set

func Set(root map[string]interface{}, path string, value interface{})

Set 按点分路径写入 map 数据,中间层不存在时按 JSON object 创建。

Types

This section is empty.

Jump to

Keyboard shortcuts

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