filepath

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: 0BSD Imports: 0 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const ListSeparator = ':'
View Source
const Separator = '/'

Variables

View Source
var ErrBadPattern error
View Source
var SkipAll error
View Source
var SkipDir error

Functions

func Base

func Base(path string) string

func Clean

func Clean(path string) string

func Dir

func Dir(path string) string

func Ext

func Ext(path string) string

func FromSlash

func FromSlash(path string) string

func HasPrefix

func HasPrefix(p string, prefix string) bool

func IsAbs

func IsAbs(path string) bool

func IsLocal

func IsLocal(path string) bool

func Join

func Join(elem ...string) string

func Localize

func Localize(path string) (string, error)

func Match

func Match(pattern string, name string) (matched bool, err error)

func Rel

func Rel(basePath string, targPath string) (string, error)

func Split

func Split(path string) (dir string, file string)

func SplitList

func SplitList(path string) []string

func ToSlash

func ToSlash(path string) string

func VolumeName

func VolumeName(path string) string

Types

This section is empty.

Jump to

Keyboard shortcuts

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