cleanpath

package
v0.0.0-...-78658fd Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2016 License: Apache-2.0 Imports: 4 Imported by: 5

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