diff --git a/README.md b/README.md index 8f5930c..ad5c066 100644 --- a/README.md +++ b/README.md @@ -19,7 +19,7 @@
- Share on Twitter! + Share on Twitter!

@@ -35,16 +35,33 @@ Install 📡 ---------- ```console -go install github.com/edoardottt/defango@latest +go get github.com/edoardottt/defango ``` Get Started 🎉 ---------- ```go -... +import ( + "fmt" + "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`](https://pkg.go.dev/github.com/edoardottt/defango). + Changelog 📌 ------- @@ -57,7 +74,7 @@ Just open an [issue](https://github.com/edoardottt/defango/issues) / [pull reque Before opening a pull request, download [golangci-lint](https://golangci-lint.run/usage/install/) and run -```bash +```console golangci-lint run ```