os.Path.pathSeparator

Returns the character used in environment variables to separate path elements.

Syntax

os.Path.pathSeparator()
  RETURNS STRING

Usage

You typically use this method to build a path from two components.

On UNIX™, the path separator is ':'.

On Windows®, the path separator is ';'.