utils

package
v0.0.0-...-6b030f4 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debug

func Debug(arg interface{})

func DlvBreak

func DlvBreak()

func InString

func InString(hay *[]string, needle string) bool

func IsArray

func IsArray(a interface{}) bool

func IsCallable

func IsCallable(method_value reflect.Value, field_name string) bool

func IsExported

func IsExported(name string) bool

Is the symbol exported by Go? Only names with upper case are exported.

func IsInt

func IsInt(x interface{}) bool

Does x resemble a int?

func SplitIdent

func SplitIdent(s string) []string

Split an identifier to a list of components taking into account backtick expansions.

func ToFloat

func ToFloat(x interface{}) (float64, bool)

func ToInt64

func ToInt64(x interface{}) (int64, bool)

func ToString

func ToString(x interface{}) (string, bool)

Try very hard to convert to a string

func Unquote

func Unquote(s string) string

unquote either a " or ' delimited string.

func Unquote_ident

func Unquote_ident(s string) string

Unquote a ` delimited string.

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