config

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 29, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config provides functionality for initializing and parsing a yaml configuration file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Resources []resolver.Resource `yaml:"resources"`
}

Configuration represents the contents of a krf configuration file.

func InitAndLoad

func InitAndLoad(filename string) (*Configuration, error)

InitAndLoad creates the named configuration file if it does not exist and then subsequently loads it.

func Load

func Load(filename string) (*Configuration, error)

Load parses the named configuration file.

Jump to

Keyboard shortcuts

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