mirror of
https://github.com/zu1k/nali.git
synced 2025-01-23 05:39:03 +08:00
13 lines
180 B
Go
13 lines
180 B
Go
|
package iptools
|
||
|
|
||
|
import (
|
||
|
"fmt"
|
||
|
"testing"
|
||
|
)
|
||
|
|
||
|
func TestIP4Re(t *testing.T) {
|
||
|
str := "aaa1.1.11.23a36.36.32.200"
|
||
|
fmt.Println(GetIP4FromString(str))
|
||
|
fmt.Println(ValidIP4(str))
|
||
|
}
|