internal

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Float64P

func Float64P(v float64) *float64

Float64P returns a pointer float

func OpenBrowser

func OpenBrowser(url string)

OpenBrowser opens a given URL in browser - sourced from https://gist.github.com/nanmu42/4fbaf26c771da58095fa7a9f14f23d27

func Popleft

func Popleft(s []string) (string, []string)

Popleft pops the first string off a slice

func StringP

func StringP(str string) *string

StringP returns a pointer string

Types

type Printer

type Printer struct {
	Debug bool
}

Printer only outputs if debug=true

func (*Printer) Print

func (p *Printer) Print(v ...interface{}) (int, error)

Print wraps fmt.Print

func (*Printer) Printf

func (p *Printer) Printf(f string, v ...interface{}) (int, error)

Printf wraps fmt.Printf

Jump to

Keyboard shortcuts

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