config

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config loads and validates gohan configuration from YAML files.

Package config loads and validates gohan configuration from YAML files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Loader

type Loader struct {
	// contains filtered or unexported fields
}

Loader reads and validates the gohan project configuration.

func New

func New(rootDir string) *Loader

New returns a Loader that reads config.yaml from rootDir.

func (*Loader) Load

func (l *Loader) Load() (*model.Config, error)

Load reads config.yaml, applies default values, validates required fields, and returns the resolved configuration.

Jump to

Keyboard shortcuts

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