system

package
v0.0.0-...-55d14b2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 26, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OSTargetIntMap = map[int]OSType{
	1: Windows,
	2: Linux,
	3: Darwin,
}
View Source
var OSTargetMap = map[OSType]string{
	Windows: "Windows",
	Linux:   "Linux",
}

Functions

func ClearScreen

func ClearScreen() error

ClearScreen clean the terminal

Types

type OSType

type OSType int
const (
	Unknown OSType = iota
	Windows
	Linux
	Darwin
)

func DetectOS

func DetectOS() OSType

DetectOS return an int which represent an OS type

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL