Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
//Results is a thread safe list containing results of the scanner action.
Results resultList
)
Functions ¶
func GenerateTable ¶
func GenerateTable(data [][]string) *tablewriter.Table
GenerateTable generates a table with given data
func ResultTo2DSlice ¶
func ResultTo2DSlice(res *resultList) [][]string
ResultTo2DSlice converts a resultList to a 2d slice to be used in table generation.
Types ¶
type Expected ¶
type Expected struct {
// contains filtered or unexported fields
}
Expected struct containing values to be expected.
type File ¶
type File struct {
// contains filtered or unexported fields
}
File struct used to store file information.
type Result ¶
type Result struct {
// contains filtered or unexported fields
}
Result object contains results of match checks.
func (*Result) ValidateResult ¶
ValidateResult compares expected values to the result values. todo: needs to check if more than one has to be valid.
Click to show internal directories.
Click to hide internal directories.