varfile

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package varfile provides utilities for loading variables from files in TOML, YAML, and JSON formats.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(filePath string) (map[string]string, error)

Load reads variables from a file and returns them as a map. Supports TOML, YAML, and JSON formats based on file extension. For TOML files, it supports both simple key-value format and the template format with [variables] section.

func Merge

func Merge(fileVars, cliVars map[string]string) map[string]string

Merge combines variables from a file with command-line variables. Command-line variables take precedence over file variables.

Types

This section is empty.

Jump to

Keyboard shortcuts

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