paths

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const FilePathSeparator = string(filepath.Separator)

FilePathSeparator as defined by os.Separator.

Variables

This section is empty.

Functions

func AbsPathify

func AbsPathify(workingDir, inPath string) string

AbsPathify creates an absolute pathspec if given a working dir and a relative pathspec. If already absolute, the pathspec is just cleaned.

func Filename

func Filename(in string) (name string)

Filename takes a file pathspec, strips out the extension, and returns the name of the file.

func PathNoExt

func PathNoExt(in string) string

PathNoExt takes a pathspec, strips out the extension, and returns the name of the file.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL