utils

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CIndex    = color.New(color.FgHiCyan)
	CSymbol   = color.New(color.FgHiMagenta)
	CTitle    = color.New(color.FgHiGreen).Add(color.Bold)
	CReadTime = color.New(color.FgHiMagenta)
	CURL      = color.New(color.FgHiYellow)
	CError    = color.New(color.FgHiRed)
	CExcerpt  = color.New(color.FgHiWhite)
	CTag      = color.New(color.FgHiBlue)

	CIndexSprint    = CIndex.SprintFunc()
	CSymbolSprint   = CSymbol.SprintFunc()
	CTitleSprint    = CTitle.SprintFunc()
	CReadTimeSprint = CReadTime.SprintFunc()
	CURLSprint      = CURL.SprintFunc()
	CErrorSprint    = CError.SprintFunc()
	CExcerptSprint  = CExcerpt.SprintFunc()
	CTagSprint      = CTag.SprintFunc()
)

Functions

func CheckError

func CheckError(err error)

func ClearUTMParams

func ClearUTMParams(intputUrl *url.URL)

func FixUtf

func FixUtf(r rune) rune

func ParseIndexList

func ParseIndexList(indices []string) ([]int, error)

parseIndexList converts a list of indices to their integer values

Types

This section is empty.

Jump to

Keyboard shortcuts

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