systemlib

package
v0.0.0-...-92c1b66 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DEFAULT_PATH_NAMES = map[string]string{
	"OLIB_PATH":  "lib",
	"OBASE_PATH": "base",
	"OBIN_PATH":  "bin",
	"OTEMP_PATH": "tmp",
}

Functions

func CreateDir

func CreateDir(path string) bool

func CreateFile

func CreateFile(path string)

func DeleteDir

func DeleteDir(path string) bool

func DeleteFile

func DeleteFile(path string) bool

func Env

func Env(key string, value string) string
func Link(path1 string, path2 string) bool

func ReadFile

func ReadFile(path string) string

func WriteFile

func WriteFile(path string, content string) bool

Types

type Libraries

type Libraries []Library

func ScanFolder

func ScanFolder(path string, env Path, mainFile Library) Libraries

type Library

type Library struct {
	Name string
	File string
}

type Path

type Path struct {
	Key  string
	Path string
}

type System

type System struct {
	Env  []Path
	User string
	OS   string
}

func New

func New() *System

func (*System) GetEnv

func (system *System) GetEnv(key string) string

func (*System) GetLibraries

func (system *System) GetLibraries() Libraries

Jump to

Keyboard shortcuts

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