func (n NPMLookup) gitHubOrgExists(pkgversion string) bool {
	orgName := strings.Split(pkgversion, "/")[0]
	if len(orgName) > 0 {
		if n.Verbose {
			fmt.Print("Checking: https://github.com/" + orgName + " : ")
		}
		resp, err := http.Get("https://github.com/" + orgName)
		if err != nil {
			fmt.Printf(" [W] Error while trying to request https://github.com/"+orgName+" : %s\n", err)
			return false
		}
		defer resp.Body.Close()
		if n.Verbose {
			fmt.Printf("%d\n", resp.StatusCode)
		}
		return resp.StatusCode == 200
	}
	return false
}
// gitHubOrgExists returns true if GitHub organization / user exists
gitHubOrgExists returns true if GitHub organization / user exists
// gitHubOrgExists returns true if GitHub organization / user exists
func (n NPMLookup) gitHubOrgExists(pkgversion string) bool {
	orgName := strings.Split(pkgversion, "/")[0]
	if len(orgName) > 0 {
		if n.Verbose {
			fmt.Print("Checking: https://github.com/" + orgName + " : ")
		}
		resp, err := http.Get("https://github.com/" + orgName)
		if err != nil {
			fmt.Printf(" [W] Error while trying to request https://github.com/"+orgName+" : %s\n", err)
			return false
		}
		defer resp.Body.Close()
		if n.Verbose {
			fmt.Printf("%d\n", resp.StatusCode)
		}
		return resp.StatusCode == 200
	}
	return false
}
func ( n NPMLookup ) gitHubOrgExists ( pkgversion string ) bool { orgName := strings . Split ( pkgversion , " " ) [ 0 ] if len ( orgName ) > 0 { if n . Verbose { fmt . Print ( " " + orgName + " " ) } resp , err := http . Get ( " " + orgName ) if err != nil { fmt . Printf ( " " + orgName + " \n " , err ) return false } defer resp . Body . Close ( ) if n . Verbose { fmt . Printf ( " \n " , resp . StatusCode ) } return resp . StatusCode == 200 } return false }
gitHubOrgExists returns true if GitHub organization / user exists
gitHubOrgExists returns true if GitHub organization / user exists