config

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeDir  = "dir"
	TypeFile = "file"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ProjectName string          `yaml:"projectName"`
	Language    string          `yaml:"language"`
	Structure   []StructureNode `yaml:"structure"`
}

func LoadConfigFromYaml

func LoadConfigFromYaml(filename string) (*Config, error)

type StructureNode

type StructureNode struct {
	Type     string          `yaml:"type"`
	Name     string          `yaml:"name"`
	Children []StructureNode `yaml:"children,omitempty"`
}

Jump to

Keyboard shortcuts

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