utils

package
v0.2.4 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2018 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Green = string([]byte{27, 91, 57, 55, 59, 52, 50, 109})
	Red   = string([]byte{27, 91, 57, 55, 59, 52, 49, 109})
	Reset = string([]byte{27, 91, 48, 109})
	White = string([]byte{27, 91, 57, 48, 59, 52, 55, 109})
)

Functions

func Build added in v0.2.2

func Build() string

func FindStringInArray

func FindStringInArray(item string, items []string) bool

func RegisterVersionAndBuild added in v0.2.2

func RegisterVersionAndBuild(v, b string)

func StringDefault

func StringDefault(orig, val string) string

func Version added in v0.2.2

func Version() string

Types

type RFCTime

type RFCTime struct {
	time.Time
}

func (RFCTime) MarshalJSON

func (d RFCTime) MarshalJSON() ([]byte, error)

func (RFCTime) MarshalText

func (d RFCTime) MarshalText() ([]byte, error)

func (RFCTime) String

func (d RFCTime) String() string

func (*RFCTime) UnmarshalJSON

func (d *RFCTime) UnmarshalJSON(b []byte) error

Jump to

Keyboard shortcuts

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