config

package
v0.0.0-...-429302c Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2022 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Overview

Package config loads configuration data from an external file.

Package config loads configuration data from an external file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadYML

func LoadYML(relativepath string) (*models.Generator, error)

LoadYML loads a .yml configuration file into a Generator.

func ParseYML

func ParseYML(yml YML) *models.Generator

ParseYML parses a YML into a Generator.

Types

type Generated

type Generated struct {
	Setup    string `yaml:"setup"`
	Output   string `yaml:"output"`
	Template string `yaml:"template"`
}

Generated represents generated properties of the YML file.

type YML

type YML struct {
	Options   map[string]interface{} `yaml:"custom"`
	Generated Generated              `yaml:"generated"`
}

YML represents the first level of the YML file.

Jump to

Keyboard shortcuts

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