path

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: MIT 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

Join joins the string slice to a string separated by a `/`

func Split

func Split(path string) []string

Split splits the string by `/` separator, then cleans up any empty strings

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