MCPcopy
hub / github.com/siyuan-note/siyuan / JsonArgParseFunc

FuncType JsonArgParseFunc

kernel/util/net.go:354–354  ·  view source on GitHub ↗

JsonArgParseFunc 为单次提取函数,用于 ParseJsonArgs 批量提取。

func(arg map[string]any, ret *gulu.Result) bool

Source from the content-addressed store, hash-verified

352
353// JsonArgParseFunc 为单次提取函数,用于 ParseJsonArgs 批量提取。
354type JsonArgParseFunc func(arg map[string]any, ret *gulu.Result) bool
355
356// BindJsonArg 创建一个提取函数:从 arg 取 key 并写入 dest,供 ParseJsonArgs 使用。
357func BindJsonArg[T any](key string, dest *T, required, rejectEmpty bool) JsonArgParseFunc {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected