internal

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHashCode

func GetHashCode(text string) uint64

func List

func List(set map[string]struct{}) []string

Types

type Path

type Path struct {
	Name   string
	Status PathStatus
}

type PathList

type PathList struct {
	Root         string           `yaml:"root"`
	Paths        map[uint64]*Path `yaml:"paths"`
	MaxSubLevels int              `yaml:"max_sub_levels"`
}

func NewPathList

func NewPathList(pathRoot string, maxSubLevels int) *PathList

func (*PathList) Find

func (pl *PathList) Find(folder string) *Path

func (*PathList) FindByPattern

func (pl *PathList) FindByPattern(args []string) []*Path

func (*PathList) GetChildren

func (pl *PathList) GetChildren(folder *Path) []*Path

func (*PathList) Sync

func (pl *PathList) Sync() error

type PathStatus

type PathStatus uint8
const (
	Enabled PathStatus = iota
	Disabled
	ChildrenDisabled
)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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