github.com/Asutorufa/yuhaiin@v0.3.6-0.20240502055049-7984da7023a0/pkg/net/dns/resolver/edns_test.go (about) 1 package dns 2 3 import ( 4 "net" 5 "testing" 6 ) 7 8 func TestMask(t *testing.T) { 9 _, s, err := net.ParseCIDR("ff::1/20") 10 if err != nil { 11 t.Error(err) 12 } 13 t.Log(s.Mask.Size()) 14 t.Log(s.IP) 15 16 }