Skip to content

Commit

Permalink
Better method doc.
Browse files Browse the repository at this point in the history
Signed-off-by: Jeff Ortel <[email protected]>
  • Loading branch information
jortel committed Sep 19, 2024
1 parent 079e102 commit cdef3ce
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
10 changes: 10 additions & 0 deletions api/analysis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2871,6 +2871,16 @@ func (r *yamlEncoder) embed(object any) encoder {
}

// ManifestReader analysis manifest reader.
// The manifest contains 3 sections containing documents delimited by markers.
// The manifest must contain ALL markers even when sections are empty.
// Note: `^]` = `\x1D` = GS (group separator).
// Section markers:
// ^]BEGIN-MAIN^]
// ^]END-MAIN^]
// ^]BEGIN-ISSUES^]
// ^]END-ISSUES^]
// ^]BEGIN-DEPS^]
// ^]END-DEPS^]
type ManifestReader struct {
file *os.File
marker map[string]int64
Expand Down
8 changes: 4 additions & 4 deletions binding/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,10 @@ type Analysis struct {
}

// Create an analysis report using the manifest at the specified path.
// The manifest contains 3 sections containing documents delimited by separators.
// The manifest must contain ALL delimiters even when sections are empty.
// Note: `^]` = `\x1D` = GS (group separator character).
// Section separators:
// The manifest contains 3 sections containing documents delimited by markers.
// The manifest must contain ALL markers even when sections are empty.
// Note: `^]` = `\x1D` = GS (group separator).
// Section markers:
// ^]BEGIN-MAIN^]
// ^]END-MAIN^]
// ^]BEGIN-ISSUES^]
Expand Down

0 comments on commit cdef3ce

Please sign in to comment.