blob: 9c0ca59855d1af0a275fba13267a6b60d557e72d [file] [log] [blame]
// Copyright 2015 The Vanadium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
package namespace
import "v.io/v23/naming"
func convertServersToStrings(servers []naming.MountedServer, suffix string) (ret []string) {
for _, s := range servers {
ret = append(ret, naming.Join(s.Server, suffix))
}
return
}
func convertStringsToServers(servers []string) (ret []naming.MountedServer) {
for _, s := range servers {
ret = append(ret, naming.MountedServer{Server: s})
}
return
}