xutil

package
v0.3.32 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2021 License: MIT Imports: 2 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

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

func If

func If(check bool, a, b interface{}) interface{}

If exported

func IsZero

func IsZero(val interface{}) bool

IsZero

func ToBytes added in v0.3.12

func ToBytes(str string) []byte

#nosec G103 ToBytes returns a byte pointer without allocation

func ToStr added in v0.3.12

func ToStr(bytes []byte) string

#nosec G103 ToStr returns a string pointer without allocation

Types

This section is empty.

Jump to

Keyboard shortcuts

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