jsoncodec

package
v0.1.27 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package jsoncodec 提供仓储层共享的 JSON 编解码 helper。

L2 | 父级: internal/storage(L1 见 AGENTS.md)

成员清单:

  • codec_json.go:MarshalStringSlice 等 JSON 编解码。

[PROTOCOL]: 变更时更新此头部,然后检查父级入口 AGENTS.md(L1)

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarshalStringSlice added in v0.1.3

func MarshalStringSlice(values []string) string

MarshalStringSlice 编码字符串数组 JSON。

func ParseMap

func ParseMap(raw string) map[string]any

ParseMap 解析 map JSON。

func ParseStringSlice

func ParseStringSlice(raw string) []string

ParseStringSlice 解析字符串数组 JSON。

Types

This section is empty.

Jump to

Keyboard shortcuts

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