package
module
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Jul 7, 2021
License: LGPL-3.0
Opens a new window with license information.
Imports: 7
Opens a new window with list of imports.
Imported by: 1
Opens a new window with list of known importers.
README
¶
gopath
Find out full package name of folder by probing for go.mod
Example
...
import (
"gitlab.com/akabio/gopath"
"fmt"
)
...
p, _ := gopath.Find("../test/foo/bar")
fmt.Println(p) // gitlab.com/akabio/test/foo/bar
...
Documentation
¶
Find will return the full package name of the provided folder.
RelativePath will return the relative path from the module root by probing for go.mod.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.