pkger/current.go

18 lines
354 B
Go
Raw Normal View History

2019-08-02 00:35:42 +03:00
// TODO: need to populate in memory cache when packed.
// you can't use go list, etc... in prod
2019-08-02 05:34:32 +03:00
package pkger
2019-07-31 00:21:26 +03:00
import (
"github.com/gobuffalo/here"
)
func Pkg(p string) (here.Info, error) {
return here.Cache(p, here.Package)
}
func Current() (here.Info, error) {
2019-08-01 21:37:01 +03:00
return here.Cache("", func(string) (here.Info, error) {
return here.Current()
})
2019-07-31 00:21:26 +03:00
}