config

package
v0.0.53 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(configName string, configDir string, version string) (*config.Config, error)

Types

type PathInfo added in v0.0.23

type PathInfo struct {
	Filename string
	AbsPath  string
	WorkDir  string
	// .lets abs path
	DotLetsDir string
}

func FindConfig added in v0.0.23

func FindConfig(configName string, configDir string) (PathInfo, error)

FindConfig will try to find best match for config file. Rules are: - if specified configName - try to load only that file - if specified configDir - try to look for a config only in that dir - don't do recursion - if not specified any of params above - try to find config recursively.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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