2019-08-01 19:03:12 +03:00
|
|
|
package parser
|
|
|
|
|
|
|
|
import (
|
2019-10-21 17:27:04 +03:00
|
|
|
"encoding/json"
|
|
|
|
|
2020-05-15 22:32:44 +03:00
|
|
|
"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)
|
|
|
|
}
|