util

package
v0.0.0-...-8c278e4 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2021 License: BSD-3-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const TimeSleep = 5 * time.Second

Variables

This section is empty.

Functions

func CopyFile

func CopyFile(source, destination string) error

func Encode

func Encode(s interface{}) ([]byte, error)

func PrettyEncode

func PrettyEncode(s interface{}) ([]byte, error)

func ReadFile

func ReadFile(path string) ([]byte, error)

func TakeScreenshot

func TakeScreenshot() ([]byte, error)

func WriteFile

func WriteFile(path string, data []byte) error

Types

type Type

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

func DetectOS

func DetectOS() Type

DetectOS return an int which represent an OS type

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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