网络相关
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
236 B

package network
import (
"fmt"
"testing"
)
func TestScanPort(t *testing.T) {
ports := ScanPort(55000, 60000, 2)
fmt.Println(ports)
}
func TestRandPort(t *testing.T) {
port := RandPort(50000, 60000)
fmt.Println("port:", port)
}