Documentation ¶
Index ¶
Constants ¶
View Source
const ReportMatchHeader = `` /* 153-byte string literal not displayed */
ReportMatchHeader is the header for matched packages
View Source
const ReportMatchRow = "<tr><td>%s</td><td>%s</td><td class=\"%s\">%s</td><td><a href=\"%s\">%s</a></td></tr>\n"
ReportMatchRow is the format string for a row of the matched packages
View Source
const ReportStart = `` /* 495-byte string literal not displayed */
ReportStart is the header at the beginning of a report
View Source
const ReportSummary = `` /* 1019-byte string literal not displayed */
ReportSummary is a format string for a summary of a report
View Source
const ReportTableClose = "</tbody></table>\n"
ReportTableClose terminates a table in the report
View Source
const ReportUnmatchedClose = `
<h3><a href="#summary">Back to Top</a></h3>
</body>
`
ReportUnmatchedClose terminates the report
View Source
const ReportUnmatchedHeader = `
<h1 id="unmatched">Unmatched Packages</h1>
<h3><a href="#summary">Back to Top</a></h3>
`
ReportUnmatchedHeader is the header for unmatched packages
View Source
const ReportUnmatchedRow = "<tr><td>%s</td><td>%s</td><td><a href=\"%s\">%s</a></td></tr>\n"
ReportUnmatchedRow is the format strign for a row of the unmatched packages
View Source
const ReportUnmatchedSectionStart = `
<h3>%s</h3>
<table>
<thead>
<tr><th>Name</th><th>Old Version</th><th>Location</th></tr>
</thead>
<tbody>
`
View Source
const ReportUnmatchedSectionStop = "</tbody></table>"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PackageYML ¶
type PackageYML struct { Name string `yaml:"name"` Version string `yaml:"version"` Sources []map[string]string `yaml:"source"` }
PackageYML is a Go representation of a package.yml file
func Open ¶
func Open(path string) (yml *PackageYML, err error)
Open parses a package.yml into a struct and returns it
Click to show internal directories.
Click to hide internal directories.