util

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MemoryUse

func MemoryUse() string

func OpenBrowser

func OpenBrowser(url string) error

func RunShellCommand

func RunShellCommand(timeout time.Duration, wd string, envs []string, cmd string, args ...string) ([]byte, error)

func ServeFiles

func ServeFiles(dir, recommendedPort string, silentMode bool, goldVersion string)

func UncompressTarGzipData

func UncompressTarGzipData(data []byte) ([]byte, error)

This funciton is very simple. It is intended to get a single file.

Types

type StopWatch

type StopWatch struct {
	// contains filtered or unexported fields
}

func NewStopWatch

func NewStopWatch() *StopWatch

Return an auto-start StopWatch.

func (*StopWatch) Duration

func (sw *StopWatch) Duration(reset bool) (d time.Duration)

Duration will reset the StopWatch.

Jump to

Keyboard shortcuts

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