forked from mirror/pkger
18 lines
353 B
Go
18 lines
353 B
Go
// TODO: need to populate in memory cache when packed.
|
|
// you can't use go list, etc... in prod
|
|
package pkgs
|
|
|
|
import (
|
|
"github.com/gobuffalo/here"
|
|
)
|
|
|
|
func Pkg(p string) (here.Info, error) {
|
|
return here.Cache(p, here.Package)
|
|
}
|
|
|
|
func Current() (here.Info, error) {
|
|
return here.Cache("", func(string) (here.Info, error) {
|
|
return here.Current()
|
|
})
|
|
}
|