package there

import "github.com/gobuffalo/here/there"

Index

Functions

func Current

func Current() (here.Info, error)

Results are cached globally inside the package. Current returns the Info representing the current Go module

func Dir

func Dir(p string) (here.Info, error)

Dir attempts to gather info for the requested directory. Results are cached globally inside the package.

func Package

func Package(p string) (here.Info, error)

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

there.go

Version
v0.6.7 (latest)
Published
Sep 3, 2022
Platform
js/wasm
Imports
1 packages
Last checked
10 hours ago

Tools for package owners.