pathx

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2024 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Overview

Package pathx provides extensions to the path package.

Index

Examples

Constants

This section is empty.

Variables

This section is empty.

Functions

func Descends

func Descends(a, b string) bool

Descends reports whether b is equal to, or a descendant of a.

Example
fmt.Println(Descends("a", "a"))
fmt.Println(Descends("a", "a/b/c"))
fmt.Println(Descends("a/d", "a/b"))
Output:

true
true
false

Types

This section is empty.

Jump to

Keyboard shortcuts

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