OSDN Git Service
(root)
/
bytom
/
vapor.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #201 from Bytom/v0.1
[bytom/vapor.git]
/
vendor
/
github.com
/
grandcat
/
zeroconf
/
utils.go
diff --git a/vendor/github.com/grandcat/zeroconf/utils.go
b/vendor/github.com/grandcat/zeroconf/utils.go
new file mode 100644
(file)
index 0000000..
39dc158
--- /dev/null
+++ b/
vendor/github.com/grandcat/zeroconf/utils.go
@@ -0,0
+1,8
@@
+package zeroconf
+
+import "strings"
+
+// trimDot is used to trim the dots from the start or end of a string
+func trimDot(s string) string {
+ return strings.Trim(s, ".")
+}