package
Version:
v0.1.0
Opens a new window with list of versions in this module.
Published: Aug 25, 2026
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package jsonnode 提供从上下文或 JSON 对象中提取字段的默认 node 节点。
Definition 返回 JSON 提取节点的完整注册定义。
func SourceRoot(fc *core.FlowContext, path string) (interface{}, bool)
SourceRoot 从固定入口 ctx 按点分路径读取数据,例如 ctx.params.id 或 ctx.vars.user.name。
type Config struct {
Path string `json:"path"`
Mappings map[string]string `json:"mappings"`
MissingAsNil bool `json:"missingAsNil"`
}
Config 是 JSON node 从 node.config 解码得到的内部配置。
Node 从 FlowContext 的固定 ctx 入口按路径提取字段,并返回提取结果。
func (e *Node) Execute(fc *core.FlowContext, node *core.NodeDefine) (interface{}, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.