sys

package
v0.0.62 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2024 License: MIT Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyDir added in v0.0.6

func CopyDir(src string, dst string) error

CopyDir will copy all files recursively from src to dst

func CopyFile added in v0.0.6

func CopyFile(src, dst string) (int64, error)

CopyFile will copy src to dst

func CreateShutdownChannel

func CreateShutdownChannel() chan os.Signal

CreateShutdownChannel returns a channel which can be used to block for a termination signal (SIGTERM, SIGINT, etc)

func LocalIP added in v0.0.6

func LocalIP() (string, error)

LocalIP will return the local ipaddress for the machine

Types

type Environment added in v0.0.49

type Environment string
const (
	Stable  Environment = "stable"
	Sandbox Environment = "sandbox"
	Edge    Environment = "edge"
	Dev     Environment = "dev"
)

func GetEnvironment added in v0.0.49

func GetEnvironment() (Environment, error)

func MustGetEnvironment added in v0.0.49

func MustGetEnvironment() Environment

func NewEnvironment added in v0.0.49

func NewEnvironment(env string) (Environment, error)

func (Environment) String added in v0.0.50

func (e Environment) String() string

Jump to

Keyboard shortcuts

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