path

package
v0.1.20 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2023 License: Unlicense Imports: 3 Imported by: 0

Documentation

Overview

Package path provides a simple string slice representation for paths, equally usable for filesystems or HD keychain schemes.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIndent

func GetIndent(d int) string

Types

type Path

type Path []string

func From

func From(s string) (p Path)

func (Path) Child

func (p Path) Child(child string) (p1 Path)

func (Path) Common

func (p Path) Common(p2 Path) (o Path)

func (Path) Equal

func (p Path) Equal(p2 Path) bool

func (Path) Parent

func (p Path) Parent() (p1 Path)

func (Path) String

func (p Path) String() string

func (Path) TrimPrefix

func (p Path) TrimPrefix() Path

Jump to

Keyboard shortcuts

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