filepathlite

package standard library
go1.26.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation ΒΆ

Overview ΒΆ

Package filepathlite implements a subset of path/filepath, only using packages which may be imported by "os".

Tests for these functions are in path/filepath.

Index ΒΆ

Constants ΒΆ

View Source
const (
	Separator     = '/' // OS-specific path separator
	ListSeparator = ':' // OS-specific path list separator
)

Variables ΒΆ

This section is empty.

Functions ΒΆ

func Base ΒΆ

func Base(path string) string

Base is filepath.Base.

func Clean ΒΆ

func Clean(path string) string

Clean is filepath.Clean.

func Dir ΒΆ

func Dir(path string) string

Dir is filepath.Dir.

func Ext ΒΆ

func Ext(path string) string

Ext is filepath.Ext.

func FromSlash ΒΆ

func FromSlash(path string) string

FromSlash is filepath.FromSlash.

func IsAbs ΒΆ

func IsAbs(path string) bool

IsAbs reports whether the path is absolute.

func IsLocal ΒΆ

func IsLocal(path string) bool

IsLocal is filepath.IsLocal.

func IsPathSeparator ΒΆ

func IsPathSeparator(c uint8) bool

func Localize ΒΆ

func Localize(path string) (string, error)

Localize is filepath.Localize.

func Split ΒΆ

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

Split is filepath.Split.

func ToSlash ΒΆ

func ToSlash(path string) string

ToSlash is filepath.ToSlash.

func VolumeName ΒΆ

func VolumeName(path string) string

VolumeName is filepath.VolumeName.

func VolumeNameLen ΒΆ

func VolumeNameLen(path string) int

VolumeNameLen returns the length of the leading volume name on Windows. It returns 0 elsewhere.

Types ΒΆ

This section is empty.

Jump to

Keyboard shortcuts

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