pkger/parser/file.go

19 lines
263 B
Go

package parser
import (
"encoding/json"
"github.com/gobuffalo/here"
)
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)
}