1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-10 03:42:21 +08:00

Replace strings.Join(elms, "/") with path.Join(elms)

License: MIT
Signed-off-by: rht <rhtbot@gmail.com>
This commit is contained in:
rht
2015-11-17 15:36:48 +07:00
committed by Jeromy
parent 8abb12e760
commit ffd859232d
8 changed files with 31 additions and 24 deletions

View File

@ -102,3 +102,7 @@ func (p *Path) IsValid() error {
_, err := ParsePath(p.String())
return err
}
func Join(pths []string) string {
return strings.Join(pths, "/")
}