path

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: GPL-3.0 Imports: 1 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Join

func Join(names []string) string

Like "path".Join except it takes a []string rather than ...string

func Split

func Split(path string) []string

Splits a path on / and cleans up empty paths

example:

/home/taubyte with strings.Split would evaluate to []string{"", "home", "taubyte"}

Split will evaluate `/home/taubyte` as []string{"home", "taubyte"}

Types

This section is empty.

Jump to

Keyboard shortcuts

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