quant

package module
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2024 License: Apache-2.0 Imports: 12 Imported by: 7

README

quant

common utilities for golang projects

Travis CI Build Status

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Compress

func Compress(value string) (string, error)

func CopyFile

func CopyFile(src, dst string) (err error)

func CopyFileContents

func CopyFileContents(src, dst string) (err error)

copyFileContents copies the contents of the file named src to the file named by dst. The file will be created if it does not already exist. If the destination file exists, all it's contents will be replaced by the contents of the source file.

func CreatePath

func CreatePath(path string) error

func ExecutableFolder

func ExecutableFolder() (string, error)

func ExistsPath

func ExistsPath(path string) (bool, error)

func Uncompress

func Uncompress(value string) (string, error)

Types

type Action0

type Action0 func()

type Action1

type Action1 func() (interface{}, error)

type FakeParrot

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

FakeParrot is a fake implementation of the Parrot struct for testing purposes.

func NewFakeParrot

func NewFakeParrot(n string) *FakeParrot

NewFakeParrot creates a new instance of FakeParrot.

func (*FakeParrot) Debug

func (p *FakeParrot) Debug(a ...interface{})

Debug prints debug messages.

func (*FakeParrot) Error

func (p *FakeParrot) Error(a ...interface{})

Error prints error messages.

func (*FakeParrot) Info

func (p *FakeParrot) Info(a ...interface{})

Info prints informational messages.

func (*FakeParrot) Print

func (p *FakeParrot) Print(a ...interface{})

Print prints messages without formatting.

func (*FakeParrot) Println

func (p *FakeParrot) Println(a ...interface{})

Println prints messages with a newline.

func (*FakeParrot) Tablify

func (p *FakeParrot) Tablify(header []string, body [][]string)

Tablify simulates tabular output.

func (*FakeParrot) Warn

func (p *FakeParrot) Warn(a ...interface{})

Warn prints warning messages.

type Parrot

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

func NewParrot

func NewParrot(n string) *Parrot

func NewVerboseParrot

func NewVerboseParrot(n string) *Parrot

func (Parrot) Debug

func (t Parrot) Debug(a ...interface{})

func (Parrot) Error

func (t Parrot) Error(a ...interface{})

func (Parrot) Info

func (t Parrot) Info(a ...interface{})

func (Parrot) Print

func (t Parrot) Print(a ...interface{})

func (Parrot) Println

func (t Parrot) Println(a ...interface{})

func (Parrot) Tablify

func (t Parrot) Tablify(header []string, body [][]string)

func (Parrot) Warn

func (t Parrot) Warn(a ...interface{})

type Parroter

type Parroter interface {
	Warn(a ...interface{})
	Error(a ...interface{})
	Info(a ...interface{})
	Debug(a ...interface{})
	Print(a ...interface{})
	Println(a ...interface{})
	Tablify(header []string, body [][]string)
}

Jump to

Keyboard shortcuts

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