pkger/parser/file.go

19 lines
269 B
Go
Raw Permalink Normal View History

2019-08-01 19:03:12 +03:00
package parser
import (
2019-10-21 17:27:04 +03:00
"encoding/json"
"github.com/markbates/pkger/here"
2019-08-01 19:03:12 +03:00
)
2019-10-21 17:27:04 +03:00
type File struct {
Abs string // full path on disk to file
Path here.Path
Here here.Info
}
func (f File) String() string {
b, _ := json.MarshalIndent(f, "", " ")
return string(b)
}