system

package
v0.0.0-...-4a84db8 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2023 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,
}
View Source
var OSTargetMap = map[OSType]string{
	Windows: "Windows",
	Linux:   "Linux",
}

Functions

func ClearScreen

func ClearScreen() error

ClearScreen clean the terminal

func CreateDirs

func CreateDirs(paths ...string) error

CreateDirs create a directory based on a given paths

Types

type OSType

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

func DetectOS

func DetectOS() OSType

DetectOS return an int which represent a OS type

Jump to

Keyboard shortcuts

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