edoardottt / defango

URL / IP / Email defanging with Golang. Make IoC harmless.

Home Page:https://edoardoottavianelli.it

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

defango

URL / IP / Email defanging with Golang. Make IoC harmless.

Coded with πŸ’™ by edoardottt

go action go report card
Share on Twitter!

Install β€’ Get Started β€’ Changelog β€’ Contributing β€’ License

Install πŸ“‘

go get github.com/edoardottt/defango

Get Started πŸŽ‰

package main

import (
    "fmt"
    "log"
    "github.com/edoardottt/defango"
)

func main() {
    fmt.Println(defango.IP("8.8.8.8:53"))

    u, err := defango.URL("http://malicious.example.link.com:666/m4lw4r3.exe")
    if err != nil {
      log.Fatal(err)
    }
    fmt.Println(u)

    fmt.Println(defango.Email("mailto:edoardott@gmail.com"))
}

Read the full package documentation here.

Changelog πŸ“Œ

Detailed changes for each release are documented in the release notes.

Contributing πŸ› 

Just open an issue / pull request.

Before opening a pull request, download golangci-lint and run

golangci-lint run

If there aren't errors, go ahead :)

License πŸ“

This repository is under MIT License.
edoardottt.com to contact me.