File: join.go

package info (click to toggle)
golang-github-opencontainers-runtime-tools 0.8.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 1,112 kB
  • sloc: sh: 544; makefile: 102
file content (9 lines) | stat: -rw-r--r-- 216 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
package filepath

import "strings"

// Join is an explicit-OS version of path/filepath's Join.
func Join(os string, elem ...string) string {
	sep := Separator(os)
	return Clean(os, strings.Join(elem, string(sep)))
}