|
|
- 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)
- }
|