cleanpath

package
v0.0.0-...-8127ef2 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2020 License: Apache-2.0 Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RemoveGoPath

func RemoveGoPath(path string) string

RemoveGoPath makes a path relative to one of the src directories in the $GOPATH environment variable. If $GOPATH is empty or the input path is not contained within any of the src directories in $GOPATH, the original path is returned. If the input path is contained within multiple of the src directories in $GOPATH, it is made relative to the longest one of them.

Types

This section is empty.

Jump to

Keyboard shortcuts

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