Fixed stylecheck issues

This commit is contained in:
Víctor Zamanillo 2020-09-25 19:14:19 +02:00
parent cd4e59ce27
commit aa5a635dc0
14 changed files with 26 additions and 5 deletions

View File

@ -4,10 +4,10 @@ import (
"net"
"github.com/coocood/freecache"
dns "github.com/projectdiscovery/httpx/common/resolver"
dns "github.com/projectdiscovery/httpx/common/resolve"
)
// Cache is a strcture for caching DNS lookups
// Cache is a structure for caching DNS lookups
type Cache struct {
dnsClient Resolver
cache *freecache.Cache

View File

@ -7,7 +7,7 @@ import (
"time"
"github.com/coocood/freecache"
dns "github.com/projectdiscovery/httpx/common/resolver"
dns "github.com/projectdiscovery/httpx/common/resolve"
)
var (

2
common/cache/doc.go vendored Normal file
View File

@ -0,0 +1,2 @@
// Package cache contains the logic for caching dns resolver
package cache

View File

@ -0,0 +1,2 @@
// Package customheader contains all the funcionality to deal with Custom Global Headers
package customheader

View File

@ -0,0 +1,2 @@
// Package customport contains all the funcionality to deal with HTTP ports
package customport

2
common/fileutil/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package fileutil contains all the funcionality related to deal with files
package fileutil

2
common/httputilz/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package httputilz contains all the funcionality related to common HTTP operations, dump, define methods...
package httputilz

2
common/httpx/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package httpx containst the httpx common funcionality
package httpx

2
common/iputil/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package iputil containst common utils for IP addresses
package iputil

View File

@ -1,4 +1,4 @@
package dns
package resolve
import (
"bytes"

3
common/resolve/doc.go Normal file
View File

@ -0,0 +1,3 @@
// Package resolve is used to handle resolving records
// It also handles wildcard subdomains and rotating resolvers.
package resolve

View File

@ -1,4 +1,4 @@
package dns
package resolve
import (
"net"

2
common/slice/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package slice contains a set of utilities to deal with slices
package slice

2
common/stringz/doc.go Normal file
View File

@ -0,0 +1,2 @@
// Package stringz contains a set of utilities to deal with strings
package stringz