一个类JSON的、动态的、可持久化的 Golang 【对象结构】,可用于管理配置项、缓存、模板引擎数据,也可以单纯用

RickoNoNo3 / m2obj

submited by
Style Pass
2021-06-10 12:00:02

一个类JSON的、动态的、可持久化的 Golang 【对象结构】,可用于管理配置项、缓存、模板引擎数据,也可以单纯用来存储动态JSON格式对象。

A JSON-like, dynamic, persistent OBJECT STRUCTURE for configurations, caches, Go Template data or just to store dynamic JSON objects in Go.

Note that: As a character of json package of Go, the number variables are always parsed as float64. Strictly using the ValXxx() methods only, lets you can ignore this character because of the internal implementation of M2Obj. Or, such as to use Val(), you have to check it by yourself.

Easily Get/Set for configurations with any structure you like. There is a FileSyncer to sync between your config file and m2obj object.

Leave a Comment
Related Posts