Documentation
¶
Index ¶
Examples ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IPv4 ¶
IPv4 defangs an IPv4 address
Example ¶
defangedIP, _ := IPv4("8.8.8.8") fmt.Println(defangedIP)
Output: 8.8.8[.]8
func URL ¶
URL defangs an IPv4 address
Example ¶
d, _ := URL("https://subdomain.bing.co.uk/search?q=testquery#testanchor") fmt.Println(d)
Output: hxxps://subdomain.bing[.]co[.]uk/search?q=testquery#testanchor
func URLWithMask ¶
URLWithMask defangs a URL and applies the specified defanging scheme
Example ¶
d, _ := URLWithMask("https://subdomain.bing.co.uk/search?q=testquery#testanchor", Meow) fmt.Println(d)
Output: meows://subdomain.bing[.]co[.]uk/search?q=testquery#testanchor
Types ¶
Click to show internal directories.
Click to hide internal directories.