diff --git a/cmd/bruter/concurrency.go b/cmd/bruter/concurrency.go new file mode 100644 index 0000000..ae30b9d --- /dev/null +++ b/cmd/bruter/concurrency.go @@ -0,0 +1,19 @@ +package main + +import ( + "sync" +) + +func RunConcurrently(tasks ...func()) { + var wg sync.WaitGroup + wg.Add(len(tasks)) + + for _, task := range tasks { + go func(t func()) { + defer wg.Done() + t() + }(task) + } + + wg.Wait() +} diff --git a/templates/whois.page.html b/templates/whois.page.html new file mode 100644 index 0000000..3347e8a --- /dev/null +++ b/templates/whois.page.html @@ -0,0 +1,20 @@ +{{template "base" .}} + +{{define "content"}} +
{{.WhoisInfo}}
+