func submitSubdomains(subs []string) {
	var postBody string
	for c, s := range subs {
		if c == 0 {
			postBody = s
		} else {
			postBody = postBody + fmt.Sprintf("\n%s", s)
		}
	}
	fmt.Println(getResponse("POST", "submit/hostnames", postBody))
}
get the subdomains + print them
package main
import (
	"fmt"
	"sync"
)
func submit(work chan string, wg *sync.WaitGroup, buffer int) {
	defer wg.Done()
	var subs []string
	for text := range work {
		subs = append(subs, text)
		if len(subs) >= buffer {
			submitSubdomains(subs)
			subs = nil
		}
	}
	submitSubdomains(subs)
}