Recycling HostPath and NFS impls

This commit is contained in:
markturansky
2015-05-29 16:34:02 -04:00
parent cb547f4b5c
commit 986cbb56d4
7 changed files with 471 additions and 2 deletions

View File

@@ -508,3 +508,11 @@ func GetClient(req *http.Request) string {
}
return "unknown"
}
func ShortenString(str string, n int) string {
if len(str) <= n {
return str
} else {
return str[:n]
}
}