/port

simple port scanner

Primary LanguageGoMIT LicenseMIT

Port scanner

Coverage Status Build Status Go Report Card GitHub license GoDoc

simple port scanner

Example of using:

func ExampleScanAddress() {
	address := "localhost"
	ps, err := port.ScanAddress(address)
	if err != nil {
		return
	}
	if len(ps) > 0 {
		fmt.Println("Found opened ports")
	}

	// Output:
	// Found opened ports
}