configuration

package
v0.0.0-...-86551ff Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// FILE_NAME is the name of the main project file
	FILE_NAME = "anko"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	RootPath   string `yaml:"root_path"`
	ExecPath   string `yaml:"exec_path"`
	Language   string `yaml:"language"`
	ShowBanner bool   `yaml:"show_banner"`
	Watch      Watch  `yaml:"watch"`
}

Application is responsible to mapping the datails of the root application.

type Configuration

type Configuration struct {
	Application Application `yaml:"application"`
}

Configuration is the main structure of the anko project. All the information contained in anko.yaml is converted using the Configuration structure.

func Get

func Get() *Configuration

Get is the getter of the configurationFile

func Init

func Init() (*Configuration, error)

Init is the basic configuration function, responsible to read and defining the configuration

type Watch

type Watch struct {
	Extensions []string `yaml:"extensions"`
	Files      []string `yaml:"files"`
}

Watch contains all files and extensions to be observed during the application cycle.

Jump to

Keyboard shortcuts

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