filepathlite

package standard library
go1.26.11 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2026 License: BSD-3-Clause Imports: 5 Imported by: 0 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

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