github.com/sagernet/sing@v0.4.0-beta.19.0.20240518125136-f67a0988a636/common/metadata/domain.go (about)

     1  package metadata
     2  
     3  import _ "unsafe" // for linkname
     4  
     5  //go:linkname IsDomainName net.isDomainName
     6  func IsDomainName(domain string) bool