utils

package
v0.0.0-...-ffce114 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2021 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertEquals

func AssertEquals(t *testing.T, a, b interface{})

func AssertFalse

func AssertFalse(t *testing.T, j bool)

func AssertTrue

func AssertTrue(t *testing.T, j bool)

func CheckPointerByInstance

func CheckPointerByInstance(i interface{}) bool

func CheckPointerByType

func CheckPointerByType(t reflect.Type) bool

func CheckSliceByInstance

func CheckSliceByInstance(i interface{}) bool

func CheckSliceByType

func CheckSliceByType(t reflect.Type) bool

func GetPointedTypeByInstance

func GetPointedTypeByInstance(i interface{}) reflect.Type

func GetSliceItemTypeByType

func GetSliceItemTypeByType(t reflect.Type) reflect.Type

func GetTagStructMapping

func GetTagStructMapping(t reflect.Type, tagName string) map[string]int

func UnixTime

func UnixTime(t time.Time) int64

Types

This section is empty.

Jump to

Keyboard shortcuts

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