-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use the m-lab/go/host package to parse -hostname flag (#50)
* Use the m-lab/go/host package to parse -hostname flag This provides a consistent interface for processing a hostname, and allows us to handle special cases in the `host` package instead of in this code. For example, the `host` package knows about managed instance group random suffixes on instance/node names, and can handle that gracefully for uuid-annotator. * Uses builtin String() func instead of fmt The m-lab/go/host package has a built-in String() function which returns the hostname, minus any suffix. Use this instead of some long fmt.Sprintf() call.
- Loading branch information
Showing
3 changed files
with
18 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters