pkg

package
v0.2.34 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Caller = &_Caller{}

Caller init

View Source
var ErrNoFuncCaller = errors.New("pkg: no func caller error")

ErrNoFuncCaller not found error

Functions

func Default added in v0.2.26

func Default(t, f interface{}) interface{}

func If

func If(b bool, t, f interface{}) interface{}

If exported

func IsNone

func IsNone(val interface{}) bool

IsNone exported

func IsZero

func IsZero(val reflect.Value) bool

IsZero exported

func LCS added in v0.2.26

func LCS(s1 string, s2 string) string

LCS gets the longest common substring of s1 and s2. 最长公共子串 Refers to http://en.wikibooks.org/wiki/Algorithm_Implementation/Strings/Longest_common_substring.

Types

This section is empty.

Directories

Path Synopsis
Package structs contains various utilities functions to work with structs.
Package structs contains various utilities functions to work with structs.
Package table provides a convenient way to generate tabular output of any data, primarily useful for CLI tools.
Package table provides a convenient way to generate tabular output of any data, primarily useful for CLI tools.

Jump to

Keyboard shortcuts

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