Skip to content

Os

Spice
import "std/os/os";

Functions

isLinux

Spice
public f<bool> isLinux()

Check if the current operating system is Linux

Returns: bool — true if the current OS is Linux, false otherwise

isWindows

Spice
public f<bool> isWindows()

Check if the current operating system is Windows

Returns: bool — true if the current OS is Windows, false otherwise

isMacOS

Spice
public f<bool> isMacOS()

Check if the current operating system is macOS

Returns: bool — true if the current OS is macOS, false otherwise

isUnixBased

Spice
public f<bool> isUnixBased()

Check if the current operating system is Unix-based

Returns: bool — true if the current OS is Unix-based, false otherwise