utils

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AutotAnyI64tAnyI

func AutotAnyI64tAnyI(Val any) any

func Byte2String

func Byte2String(b byte) string

func Bytes2String

func Bytes2String(b []byte) string

func BytesCombine2

func BytesCombine2(pBytes ...[]byte) []byte

func ContainsInSlice

func ContainsInSlice(items []string, item string) bool

func Ints2Strings

func Ints2Strings(ints []int) []string

func String2Slice

func String2Slice(s string) (b []byte)

func Strings2Ints

func Strings2Ints(strs []string) []int

func ToBytes

func ToBytes(src any) []byte

func ToString

func ToString(src any) string

func ValIsNil

func ValIsNil(val reflect.Value) bool

Types

type Error

type Error struct {
	// contains filtered or unexported fields
}

func NewError

func NewError(e string) *Error

func (*Error) Error

func (err *Error) Error() string

Jump to

Keyboard shortcuts

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