Discover Packages
github.com/activatedio/cs
sources
json
package
Version:
v0.6.0
Opens a new window with list of versions in this module.
Published: Oct 27, 2026
License: MIT
Opens a new window with license information.
Imports: 5
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package json supports cs sources from json files
FromPath creates a new source by parsing a json file at the given path
A non-empty keyPrefix will prepend the prefix to stored keys, in format [keyPrefix].[key]
FromReader reads from the reader into a byte array
type Option func(*options)
Option configures a json source.
func ExpandEnv ¶
added in
v0.4.0
ExpandEnv enables ${VAR} and $VAR expansion on string leaves of the
decoded json tree using os.ExpandEnv semantics (unset variables expand
to an empty string). Expansion is applied recursively to values inside
objects and arrays.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.