utils

package
v2.0.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErr

func CheckErr(err error)

CheckErr handle the error

func ExistsOrMkdir

func ExistsOrMkdir(dir string) error

ExistsOrMkdir is to determine the existence of the folder, Or make.

func If

func If(condition bool, trueValue, falseValue interface{}) interface{}

If is ternary operator.

func IsExternalLink(path string) bool

IsExternalLink is to determine external link.

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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