pathsorter

package
v0.0.0-...-12e5990 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Path = mustGetEnv("PATH")
)

Functions

This section is empty.

Types

type Config

type Config struct {
	Tags     []string
	Patterns []*regexp.Regexp
	Order    []string
	// contains filtered or unexported fields
}

func LoadConfigFile

func LoadConfigFile(configPath string, homeStr string, env []string) (config *Config, err error)

func LoadConfigString

func LoadConfigString(tomlStr string, homeStr string, env []string) (config *Config, err error)

func (*Config) Fix

func (c *Config) Fix(pathstr string) (newPathEls []string)

func (*Config) MatchesNull

func (c *Config) MatchesNull(pathEl string) bool

Jump to

Keyboard shortcuts

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