Documentation ¶
Index ¶
- Variables
- func BinBaseDir() string
- func ConvertByte2String(byte []byte, charset string) string
- func FetchIpv6AndIpv4HostAndPort(uHost string) string
- func FileContent2List(path string) ([]string, error)
- func FileExist(path string) bool
- func FixFofaHostsHttpIpv6(ipv6URL string) (*url.URL, error)
- func FixFullHostInfoScheme(fields []string) string
- func FixFullHostIpv6(fullUrl string) string
- func GetDefaultConf() string
- func GetHidePasswd(key string) string
- func GetSerialNumber(client *http.Client, url string) string
- func HasStdin() bool
- func HiddenUrlKey(sp bool, fullURL string) string
- func IsHttp(url string) bool
- func IsHttps(url string) bool
- func IsWebsite(url string) bool
- func JsonStrToMAp(jsonStr string) (map[string]string, error)
- func MapToJsonStr(m map[string]string) (string, error)
- func OpenFofa(fofaOpenUrl, query string)
- func StructToMap(in interface{}, tagName string) (map[string]interface{}, error)
- type FixUrl
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfDefaultPath = []string{ "fofax.yaml", filepath.Join(getHomedir(), "fofax.yaml"), "/etc/fofax/fofax.yaml", "/etc/fofax.yaml", }
Functions ¶
func BinBaseDir ¶
func BinBaseDir() string
func ConvertByte2String ¶
ConvertByte2String 解决 windows cmd 下不能正确显示中文的问题
func FetchIpv6AndIpv4HostAndPort ¶ added in v0.1.45
"[240e:468:810:ab69:2042:7ff:fe58:881a]:8080"
func FileContent2List ¶
func FixFofaHostsHttpIpv6 ¶ added in v0.1.45
is_ipv6=true && port="8080" "https://2407:c080:17ef:ffff::7703:d86e"
func FixFullHostInfoScheme ¶
func FixFullHostIpv6 ¶ added in v0.1.45
func GetDefaultConf ¶
func GetDefaultConf() string
func GetHidePasswd ¶
func GetSerialNumber ¶
GetSerialNumber 转换证书
func HiddenUrlKey ¶ added in v0.1.37
func StructToMap ¶
StructToMap Struct 转 Map
Types ¶
type FixUrl ¶
type FixUrl struct { HostInfo string //ip:port 肯定带端口 FixedHostInfo string //scheme://host 不一定带端口,默认情况下会省略 IP string Port string Path string // 不包含参数? Dir string // 解析后的 Method string ContentType string Data string PostDataType string ParseWithScheme bool //是否解析的时候自带scheme // contains filtered or unexported fields }
Click to show internal directories.
Click to hide internal directories.