github.com/anthonyme00/gomarkdoc@v1.0.0/lang/file.go (about) 1 package lang 2 3 // File holds information for rendering a single file that contains one or more 4 // packages. 5 type File struct { 6 Header string 7 Footer string 8 Packages []*Package 9 } 10 11 // NewFile creates a new instance of File with the provided information. 12 func NewFile(header, footer string, packages []*Package) *File { 13 return &File{ 14 Header: header, 15 Footer: footer, 16 Packages: packages, 17 } 18 }