As we transition to v2 names, we need for other Go programs to not have to worry about which version a name is, but simply get what it needs from the name. Currently, we have multiple Go programs that perform their own regexps on hostnames to parse them. Rather than having to rewrite the same regexps all over the place, these programs should be able to use this package instead.
As we transition to v2 names, we need for other Go programs to not have to worry about which version a name is, but simply get what it needs from the name. Currently, we have multiple Go programs that perform their own regexps on hostnames to parse them. Rather than having to rewrite the same regexps all over the place, these programs should be able to use this package instead.
This change is