From 7258c3aa86c0cd778e31360903c324432ae42318 Mon Sep 17 00:00:00 2001 From: Ullaakut Date: Thu, 1 Oct 2020 14:54:59 +0200 Subject: [PATCH] Update go module to current version (v2.0.0) --- README.md | 2 +- examples/basic_scan/main.go | 2 +- examples/basic_scan_async/main.go | 2 +- examples/count_hosts_by_os/main.go | 4 ++-- examples/service_detection/main.go | 2 +- examples/spoof_and_decoys/main.go | 2 +- go.mod | 3 ++- xml.go | 2 +- 8 files changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 75cc8ae..04a8292 100644 --- a/README.md +++ b/README.md @@ -57,7 +57,7 @@ import ( "log" "time" - "github.com/Ullaakut/nmap" + "github.com/Ullaakut/nmap/v2" ) func main() { diff --git a/examples/basic_scan/main.go b/examples/basic_scan/main.go index ab9b42e..0e92557 100644 --- a/examples/basic_scan/main.go +++ b/examples/basic_scan/main.go @@ -6,7 +6,7 @@ import ( "log" "time" - "github.com/Ullaakut/nmap" + "github.com/Ullaakut/nmap/v2" ) func main() { diff --git a/examples/basic_scan_async/main.go b/examples/basic_scan_async/main.go index adf4a1b..db94846 100644 --- a/examples/basic_scan_async/main.go +++ b/examples/basic_scan_async/main.go @@ -5,7 +5,7 @@ import ( "log" "strings" - "github.com/Ullaakut/nmap" + "github.com/Ullaakut/nmap/v2" ) func main() { diff --git a/examples/count_hosts_by_os/main.go b/examples/count_hosts_by_os/main.go index 08de163..a106bc7 100644 --- a/examples/count_hosts_by_os/main.go +++ b/examples/count_hosts_by_os/main.go @@ -4,8 +4,8 @@ import ( "fmt" "log" - "github.com/Ullaakut/nmap" - osfamily "github.com/Ullaakut/nmap/pkg/osfamilies" + "github.com/Ullaakut/nmap/v2" + osfamily "github.com/Ullaakut/nmap/v2/pkg/osfamilies" ) func main() { diff --git a/examples/service_detection/main.go b/examples/service_detection/main.go index dcad086..91318c6 100644 --- a/examples/service_detection/main.go +++ b/examples/service_detection/main.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/Ullaakut/nmap" + "github.com/Ullaakut/nmap/v2" ) func main() { diff --git a/examples/spoof_and_decoys/main.go b/examples/spoof_and_decoys/main.go index 1b40514..5626bb8 100644 --- a/examples/spoof_and_decoys/main.go +++ b/examples/spoof_and_decoys/main.go @@ -4,7 +4,7 @@ import ( "fmt" "log" - "github.com/Ullaakut/nmap" + "github.com/Ullaakut/nmap/v2" ) func main() { diff --git a/go.mod b/go.mod index 2d35001..c6e7f17 100644 --- a/go.mod +++ b/go.mod @@ -1,3 +1,4 @@ -module github.com/Ullaakut/nmap +module github.com/Ullaakut/nmap/v2 go 1.15 + diff --git a/xml.go b/xml.go index 5e80e70..a5131a3 100644 --- a/xml.go +++ b/xml.go @@ -8,7 +8,7 @@ import ( "strconv" "time" - family "github.com/Ullaakut/nmap/pkg/osfamilies" + family "github.com/Ullaakut/nmap/v2/pkg/osfamilies" ) // Run represents an nmap scanning run.