utils

package
v0.0.0-...-b408eed Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugln

func Debugln(a ...interface{})

func Errorln

func Errorln(a ...interface{})

func HasCommands

func HasCommands(commands []Command) bool

func Infoln

func Infoln(a ...interface{})

func IsDebug

func IsDebug() bool

func MustGetName

func MustGetName() string

func NewCommand

func NewCommand(logPrefix string, command string, args ...string) *wrapExec

func PrintErrorln

func PrintErrorln(a ...interface{}) (n int, err error)

func Println

func Println(a ...interface{}) (n int, err error)

Types

type Command

type Command struct {
	Cmd  string
	Args []string
}

type SyncLogger

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

func NewSyncLogger

func NewSyncLogger(prefix string, isStdErr bool) *SyncLogger

func (*SyncLogger) Close

func (sl *SyncLogger) Close() error

func (*SyncLogger) Flush

func (sl *SyncLogger) Flush() error

func (*SyncLogger) Write

func (sl *SyncLogger) Write(p []byte) (n int, err error)

Jump to

Keyboard shortcuts

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