camino

package module
v0.2.6 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: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultFileMode = permUrwGrwOr
)

Variables

This section is empty.

Functions

func GetAbs

func GetAbs(ap AbsPath) string

func GetRel

func GetRel(rp RelPath) string

func Register

func Register(ap AbsPath, absPath string, rps map[RelPath]string)

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