The highest tagged major version is
v2 .
Discover Packages
github.com/lithictech/go-aperitif
pathutil
package
Version:
v0.1.4
Opens a new window with list of versions in this module.
Published: Oct 19, 2022
License: MIT
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
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.
Opens a new window with list of known importers.
Documentation
Documentation
¶
IsDir returns true if p exists and is a directory.
IsPathError returns true if err is present, and it or its cause is an os.PathError.
MarshalJsonFile marshals v into path.
func MarshalJsonFileWithDirs(path Unknown , v interface{}) error
MarshalJsonFileWithDirs creates intermediate dirs and marshals v into path.
UnmarshalJsonFile unmarshals the data at path into the pointer v.
Abs is an absolute path. It's just an alias of string, to avoid casting.
ResolvePath returns path if it is an absolute path,
or the abspath joined with base otherwise.
Use "" for base to use the cwd, as per filepath.Abs.
Absdir is an absolute directory.
CallerDir returns the directory of the calling code.
Join treats elem as the tail of the absolute directly.
AbsDir("/foo").Join("x", "y") => "/foo/x/y"
Rel is a relative path. It's just an alias of string, to avoid casting.
Unknown can be an absolute or relative path.
TrimExt removes the extension from p.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.