blob: 36f8e61bf92ed5d77a751e84a8f521accbb487ee [file] [log] [blame]
Yasuhiro Matsumoto0f4510b2011-05-29 13:03:49 +10001// Copyright 2011 The Go Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style
3// license that can be found in the LICENSE file.
4
Dave Cheney7c8280c2014-02-25 09:47:42 -05005// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris
Russ Cox27159562011-09-15 16:48:57 -04006
Yasuhiro Matsumoto0f4510b2011-05-29 13:03:49 +10007package os
8
9const (
10 PathSeparator = '/' // OS-specific path separator
11 PathListSeparator = ':' // OS-specific path list separator
12)
13
Josh Bleecher Snyder2adc4e82015-02-17 15:44:42 -080014// IsPathSeparator reports whether c is a directory separator character.
Yasuhiro Matsumoto0f4510b2011-05-29 13:03:49 +100015func IsPathSeparator(c uint8) bool {
16 return PathSeparator == c
17}