os.Path.pathseparator

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

Syntax

os.Path.pathseparator()
  RETURNING result 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 ';'.