utils

package
v0.2.8 Latest Latest
Warning

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

Go to latest
Published: Mar 3, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckWorkingDir

func CheckWorkingDir(c *cli.Context) (err error)

func Create

func Create(name string, mode uint32) (*os.File, error)

Create file with dir.

func GetContentFromUrl

func GetContentFromUrl(url string, auth string) (content []byte, e error)

func GetHost

func GetHost() string

func GitFile

func GitFile(repo string, file string, auth string) (content []byte, e error)

func IsUrl

func IsUrl(u string) bool

func Path

func Path(elem ...string) string

func UrlAuth

func UrlAuth(url string, auth string) string

Types

type Output

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

func NewWriter

func NewWriter() *Output

func (Output) Done

func (o Output) Done(s string)

func (Output) Err

func (o Output) Err(s string)

func (Output) Info

func (o Output) Info(i string, s string)

func (Output) Stop

func (o Output) Stop()

func (Output) Update

func (o Output) Update(s string)

Jump to

Keyboard shortcuts

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