utils

package
v2.3.0-pre5+incompatible Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BrowserLauncher

func BrowserLauncher() ([]string, error)

func Check

func Check(err error)

func CommandPath

func CommandPath(cmd string) (string, error)

func ConcatPaths

func ConcatPaths(paths ...string) string

func IsOption

func IsOption(confirm, short, long string) bool

func TimeAgo

func TimeAgo(t time.Time) string

Types

type Color

type Color struct {
	Red   int64
	Green int64
	Blue  int64
}

func NewColor

func NewColor(hex string) (*Color, error)

func (*Color) Brightness

func (c *Color) Brightness() float32

Jump to

Keyboard shortcuts

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