mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-31 17:31:23 -05:00
Bumps [github.com/gookit/config/v2](https://github.com/gookit/config) from 2.2.3 to 2.2.4. - [Release notes](https://github.com/gookit/config/releases) - [Commits](https://github.com/gookit/config/compare/v2.2.3...v2.2.4) --- updated-dependencies: - dependency-name: github.com/gookit/config/v2 dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
22 lines
355 B
Go
22 lines
355 B
Go
package jsonutil
|
|
|
|
/*
|
|
TODO json build
|
|
type JsonBuilder struct {
|
|
Indent string
|
|
// mu sync.Mutex
|
|
// cfg *CConfig
|
|
buf bytes.Buffer
|
|
out io.Writer
|
|
}
|
|
|
|
// AddField add field to json
|
|
func (b *JsonBuilder) AddField(key string, value any) *JsonBuilder {
|
|
b.buf.WriteString(`,"`)
|
|
b.buf.WriteString(key)
|
|
b.buf.WriteString(`":`)
|
|
b.encode(value)
|
|
return b
|
|
}
|
|
*/
|