reflection

package
v0.0.0-...-391253a Latest Latest
Warning

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

Go to latest
Published: Sep 4, 2023 License: GPL-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AnyIndex = -1

Variables

This section is empty.

Functions

func DoPkgTypesMatch

func DoPkgTypesMatch(a interface{}, b interface{}) error

func DoTypesMatch

func DoTypesMatch(a interface{}, b interface{}) error

func FindRequestData

func FindRequestData(ref interface{}) string

func GetArea

func GetArea(trim string, v interface{}) string

GetArea Return an Area name if we are given an Area or EndPoint struct.

func GetFingerprint

func GetFingerprint(ref interface{}) string

func GetJsonTag

func GetJsonTag(fieldTo reflect.StructField) string

func GetName

func GetName(trim string, v interface{}) string

GetName Return an endpoint name if we are given an Area or EndPoint struct.

func GetPkgType

func GetPkgType(v interface{}) string

func GetPointNameFrom

func GetPointNameFrom(ref interface{}, name string, intSize int, dateFormat string) string

func GetRequestString

func GetRequestString(ref interface{}) string

func GetStringFrom

func GetStringFrom(ref interface{}, index int, name string, intSize int, dateFormat string) string

func GetStringFromArray

func GetStringFromArray(ref interface{}, index int, name string, intSize int, dateFormat string) string

func GetStringFromMap

func GetStringFromMap(ref interface{}, name string, intSize int, dateFormat string) string

func GetStringFromStruct

func GetStringFromStruct(ref interface{}, name string, intSize int, dateFormat string) string

func GetStructName

func GetStructName(v interface{}) (string, string)

func GetTimestampFrom

func GetTimestampFrom(ref interface{}, name string, dateFormat string) time.Time

func GetType

func GetType(v interface{}) string

func HelpOptions

func HelpOptions(ref interface{}) string

func IsRefZero

func IsRefZero(x interface{}) bool

func SetFrom

func SetFrom(to interface{}, from interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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