github.com/bingoohuang/pkger@v0.0.0-20210127185155-a71b9df4c4c7/parser/file.go (about) 1 package parser 2 3 import ( 4 "encoding/json" 5 6 "github.com/bingoohuang/pkger/here" 7 ) 8 9 type File struct { 10 Abs string // full path on disk to file 11 Path here.Path 12 Here here.Info 13 } 14 15 func (f File) String() string { 16 b, _ := json.MarshalIndent(f, "", " ") 17 return string(b) 18 }