filepathlite package - internal/filepathlite - Go Packages
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.
- 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
const ( Separator = '/' ListSeparator = ':' )
This section is empty.
FromSlash is filepath.FromSlash.
IsAbs reports whether the path is absolute.
IsLocal is filepath.IsLocal.
Localize is filepath.Localize.
ToSlash is filepath.ToSlash.
VolumeName is filepath.VolumeName.
VolumeNameLen returns the length of the leading volume name on Windows. It returns 0 elsewhere.
This section is empty.