Codebase list zonedb / upstream/1.0.3066 zone_test.go
upstream/1.0.3066

Tree @upstream/1.0.3066 (Download .tar.gz)

zone_test.go @upstream/1.0.3066raw · history · blame

package zonedb

import (
	"testing"
	"unsafe"

	"golang.org/x/net/idna"
)

// ToASCII normalizes a domain name or URL to ASCII/punycode.
func ToASCII(s string) string {
	s, _ = idna.ToASCII(s)
	return s
}

func TestSizeofZone(t *testing.T) {
	var z Zone
	t.Logf("sizeof Zone = %d", unsafe.Sizeof(z))
}