OSDN Git Service

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
@@ -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, ".")
+}