typeutils

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2019 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BytesToString

func BytesToString(b []byte) string

Converts a slice of bytes into a string without performing a copy. NOTE: This is an unsafe operation and may lead to problems if the bytes passed as argument are changed while the string is used. No checking whether bytes are valid UTF-8 data is performed.

func IsInterfaceNil

func IsInterfaceNil(param interface{}) bool

Checks whether an interface is nil or has the value nil.

func StringToBytes

func StringToBytes(s string) []byte

Converts a string into a slice of bytes without performing a copy. NOTE: This is an unsafe operation and may lead to problems if the bytes are changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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