pkger/stat.go

15 lines
227 B
Go
Raw Normal View History

2019-08-09 22:43:58 +03:00
package pkger
import "github.com/markbates/pkger/here"
func Stat() (here.Info, error) {
var err error
curOnce.Do(func() {
if currentInfo.IsZero() {
currentInfo, err = here.Current()
}
})
return currentInfo, err
}