symmmys 7585278552 | ||
---|---|---|
README.md | ||
main.go |
README.md
Various functions for processing the output of gospider. Can be easily adapted for processing any newline-delimited JSON. e.g.
type GospiderJson struct {
Input string `json:"input"`
Source string `json:"source"`
Type string `json:"type"`
Output string `json:"output"`
Status int `json:"status"`
Length int `json:"length"`
}
func (gsjson GospiderJson) CheckOutputByFilter( regexpPointerSlice []*regexp.Regexp ) bool {
for _ , regexpPointer := range( regexpPointerSlice ) {
if regexpPointer.Match([]byte( gsjson.Output )) {
return true
}
}
return false
}