camino

package module
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Jul 3, 2026 License: AGPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFileMode = permUrwGrwOr
)

Variables

This section is empty.

Functions

func GetAbs

func GetAbs(absolutePath AbsPath) string

func GetRel

func GetRel(relativePath RelPath, absolutePath AbsPath) string

func ReadDirectories added in v0.2.8

func ReadDirectories(path string) (map[string]string, error)

func Register

func Register(absolutePaths map[AbsPath]string, relativePaths map[RelPath]string, relativeAbsolutePaths map[RelPath][]AbsPath) error

func Sanitize

func Sanitize(s string) string

Types

type AbsDir

type AbsDir string

type AbsPath

type AbsPath int

type Pathway

type Pathway interface {
	AbsDirPath(absDir AbsDir) string
	AbsRelDirPath(relDir RelDir, absDir AbsDir) string
}

func NewRoot

func NewRoot(rootDir string) (Pathway, error)

func NewSet

func NewSet(absDirPaths map[AbsDir]string) (Pathway, error)

func ReadSet

func ReadSet(path string) (Pathway, error)

type RelDir

type RelDir string

type RelPath

type RelPath int

Jump to

Keyboard shortcuts

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