util

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: MIT Imports: 10 Imported by: 1

Documentation

Overview

Package selfupdate provides function to update binary

Package util provides some utilities

Index

Constants

View Source
const Version = "0.1.6"

Version represents version of this tool

Variables

This section is empty.

Functions

func Do

func Do() (bool, error)

Do execute updating binary

func GetLogger added in v0.1.1

func GetLogger() *log.Logger

func InitializeLog

func InitializeLog(verbose bool)

InitializeLog initialize log settings

func LoadImagesFromDir

func LoadImagesFromDir(dirPath string, cap int) <-chan string

func PrettyPrintError

func PrettyPrintError(err error) string

PrettyPrintError print error as pretty

func ToRelPath

func ToRelPath(basePath, path string) (string, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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