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 separator ListSeparator = ':' // OS-specific path list separator )
Variables ¶
This section is empty.
Functions ¶
func IsPathSeparator ¶
func VolumeNameLen ¶
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.