filepathlite
packagestandard library go1.25.5
Go to latest Published: Dec 2, 2025 License:BSD-3-Clause
Opens a new window with list of versions in this module.
Latest LatestThis package is not in the latest version of its module.
Opens a new window with license information.
Imports:5 Opens a new window with list of imports.
Imported by:0 Opens a new window with list of known importers.
Details
Validgo.mod file
The Go module system was introduced in Go 1.11 and is the official dependency management solution for Go.
Redistributable license
Redistributable licenses place minimal restrictions on how software can be used, modified, and redistributed.
Tagged version
Modules with tagged versions give importers more predictable builds.
Stable version
When a project reaches major version v1 it is considered stable.
- Learn more about best practices
Repository
Links
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
- func Base(path string) string
- func Clean(path string) string
- func Dir(path string) string
- func Ext(path string) string
- func FromSlash(path string) string
- func IsAbs(path string) bool
- func IsLocal(path string) bool
- func IsPathSeparator(c uint8) bool
- func Localize(path string) (string, error)
- func Split(path string) (dir, file string)
- func ToSlash(path string) string
- func VolumeName(path string) string
- func VolumeNameLen(path string) int
Constants¶
View Source
const (Separator = '/'// OS-specific path separatorListSeparator = ':'// OS-specific path list separator)
Variables¶
This section is empty.
Functions¶
funcIsPathSeparator¶
funcVolumeNameLen¶
VolumeNameLen returns the length of the leading volume name on Windows.It returns 0 elsewhere.
Types¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.