Documentation ¶
Overview ¶
Package headerfile allows you to read a file which contains a small header of "key:value" lines.
These kinds of files are very common when processing simple blogs, and similar files.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HeaderFile ¶
type HeaderFile struct { // File is the filename the user wished us to read. File string // contains filtered or unexported fields }
HeaderFile is the structure that encapsulates our object.
func (*HeaderFile) Body ¶
func (h *HeaderFile) Body() (string, error)
Body returns the body of the file, which is the region after the header.
The body will contain an extra trailing newline.
Click to show internal directories.
Click to hide internal directories.