OS functions
Use these functions to interact with the operating system.
Use these functions to interact with the operating system.
os.FileExists PATH ⟼ boolReports whether the file or directory exists. Read More »
os.Getenv VARIABLE ⟼ stringReturns the value of an environment variable, or an empty string if the environment variable is not set. Read More »
os.ReadDir PATH ⟼ os.FileInfoReturns an array of FileInfo structures sorted by file name, one element for each directory entry. Read More »
os.ReadFile PATH ⟼ stringReturns the contents of a file. Read More »
os.Stat PATH ⟼ os.FileInfoReturns a FileInfo structure describing a file or directory. Read More »