assert

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsArray

func IsArray(i any) bool

IsArray returns true if the given value is an array.

func IsMap

func IsMap(i any) bool

IsMap returns true if the given value is a map.

func IsSlice

func IsSlice(i any) bool

IsSlice returns true if the given value is a slice.

func IsStruct

func IsStruct(i any) bool

IsStruct 判断参数是否为结构体或者结构体指针

func IsStructPtr

func IsStructPtr(i any) bool

IsStructPtr 判断参数是否为结构体指针

func StructToMap

func StructToMap[T any](i T) map[string]interface{}

StructToMap 将结构体转换为map

Types

This section is empty.

Jump to

Keyboard shortcuts

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