util

package
v0.9.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExeDirectory

func ExeDirectory() string

ExeDirectory ...

func ExtractFromMap

func ExtractFromMap(m map[string]interface{}, key string) interface{}

ExtractFromMap ...

func FileExists

func FileExists(path string) bool

FileExists ...

func FileStat

func FileStat(path string, ensureExists bool) os.FileInfo

FileStat ...

func MkdirAll

func MkdirAll(path string)

MkdirAll ...

func ReadFile

func ReadFile(path string) []byte

ReadFile ...

func RemoveFile

func RemoveFile(path string)

RemoveFile ...

Types

type LogFile

type LogFile = *LogFileT

LogFile ...

func InitLogger

func InitLogger() LogFile

InitLogger ...

func (LogFile) Close

func (i LogFile) Close()

Close ...

func (LogFile) Open

func (i LogFile) Open()

Open ...

func (LogFile) Write

func (i LogFile) Write(p []byte) (int, error)

Write ...

type LogFileT

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

LogFileT implements io.Writer

Jump to

Keyboard shortcuts

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