configfile

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2026 License: MIT Imports: 9 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package configfile 在更新已知配置时保留其他版本写入的 TOML 字段。

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(writer io.Writer, value any, original map[string]any) error

Encode 以当前模型为准更新已知字段,保留未知字段和较高版本号。 动态映射只保留当前实体;带 id 的数组按 id 匹配,避免排序后扩展字段串位。

func Read

func Read(path string) (map[string]any, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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