pkger/parser/file.go

19 lines
263 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"
2019-12-03 23:07:51 +03:00
"github.com/gobuffalo/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)
}