(options *Options, name string, queries ...string)
| 297 | } |
| 298 | |
| 299 | func appendQuery(options *Options, name string, queries ...string) { |
| 300 | if len(queries) > 0 { |
| 301 | if !slices.Contains(options.Engine, name) { |
| 302 | options.Engine = append(options.Engine, name) |
| 303 | } |
| 304 | |
| 305 | for _, query := range queries { |
| 306 | if !slices.Contains(options.Query, query) { |
| 307 | options.Query = append(options.Query, query) |
| 308 | } |
| 309 | } |
| 310 | } |
| 311 | } |
| 312 | |
| 313 | func appendAllQueries(options *Options) { |
| 314 | appendQuery(options, "shodan", options.Shodan...) |
no outgoing calls
no test coverage detected
searching dependent graphs…