m-lab / go

General purpose libraries / APIs for use in mlab code.
Apache License 2.0
5 stars 6 forks source link

Adds a new package for parsing v1 and v2 M-Lab hostnames #107

Closed nkinkade closed 4 years ago

nkinkade commented 4 years ago

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 Reviewable

coveralls commented 4 years ago

Pull Request Test Coverage Report for Build 800


Totals Coverage Status
Change from base Build 791: 0.4%
Covered Lines: 1368
Relevant Lines: 1677

💛 - Coveralls