package there
import "github.com/gobuffalo/here/there"
Index ¶
- func Current() (here.Info, error)
- func Dir(p string) (here.Info, error)
- func Package(p string) (here.Info, error)
Functions ¶
func Current ¶
Results are cached globally inside the package. Current returns the Info representing the current Go module
func Dir ¶
Dir attempts to gather info for the requested directory. Results are cached globally inside the package.
func Package ¶
Package attempts to gather info for the requested package.
From the `go help list` docs:
The -find flag causes list to identify the named packages but not resolve their dependencies: the Imports and Deps lists will be empty.
A workaround for this issue is to use the `Dir` field in the returned `Info` value and pass it to the `Dir(string) (Info, error)` function to return the complete data. Results are cached globally inside the package.
Source Files ¶
- Version
- v0.6.7 (latest)
- Published
- Sep 3, 2022
- Platform
- js/wasm
- Imports
- 1 packages
- Last checked
- 10 hours ago –
Tools for package owners.