summaryrefslogtreecommitdiff
path: root/android/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'android/util.go')
-rw-r--r--android/util.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/android/util.go b/android/util.go
index 92ab845ba..8fc159dc8 100644
--- a/android/util.go
+++ b/android/util.go
@@ -20,6 +20,11 @@ import (
"strings"
)
+// CopyOf returns a new slice that has the same contents as s.
+func CopyOf(s []string) []string {
+ return append([]string(nil), s...)
+}
+
func JoinWithPrefix(strs []string, prefix string) string {
if len(strs) == 0 {
return ""