Discover Packages
github.com/tduyng/gozzi
app
data
package
Version:
v0.1.2
Opens a new window with list of versions in this module.
Published: Mar 16, 2026
License: MIT
Opens a new window with license information.
Imports: 9
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Package data handles loading external data files (JSON/YAML/TOML) for templates.
Supports data/ directory structure for organizing structured content.
GetValue retrieves a value from nested data using dot notation.
Example: GetValue(data, "team.members") returns data["team"]["members"]
LoadDataFiles is a convenience function to load data from a directory.
Loader handles loading data files from the data directory.
NewLoader creates a new data loader for the specified directory.
Load reads all data files from the data directory and returns them as a map.
Supports JSON (.json), YAML (.yaml, .yml), and TOML (.toml) formats.
File names become keys in the returned map (without extension).
Nested directories create nested maps.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.