reflectx

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: Apache-2.0 Imports: 7 Imported by: 6

README

reflectx

Golang Reflect PKG Extensions

Documentation

Overview

Package reflectx

Reflect PKG Extensions in Go

Supports:

string: Bool->String,Int->String,Uint->String,Float->String,Interface->String

bool: String->Bool,Bool->Bool

int: String->Int,Float->Int,Uint->Int,Int->Int

uint: String->Uint,Float->Uint,Int->Uint,Uint->Uint

float: String->Float,Int->Float,Uint->Float,Float->Float

struct: Struct->Struct

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsArray

func IsArray(typ reflect.Type) bool

func IsBasicType

func IsBasicType(typ reflect.Type) bool

func IsBool

func IsBool(typ reflect.Type) bool

func IsFloat

func IsFloat(typ reflect.Type) bool

func IsInt

func IsInt(typ reflect.Type) bool

func IsPtr

func IsPtr(typ reflect.Type) bool

func IsSlice

func IsSlice(typ reflect.Type) bool

func IsString

func IsString(typ reflect.Type) bool

func IsStruct

func IsStruct(typ reflect.Type) bool

func IsUint

func IsUint(typ reflect.Type) bool

func ParseTag

func ParseTag(structPtr, tagPtr interface{}, alias, tag string, recursive bool) ([]*reflect.StructField, []*reflect.Value, []interface{})

func ParseTagWithRe

func ParseTagWithRe(structPtr, tagPtr interface{}, alias, tag string, recursive bool, regex string) ([]*reflect.StructField, []*reflect.Value, []interface{})

func SetValue

func SetValue(srcValue, distValue reflect.Value)

SetValue from srcValue to distValue

Types

This section is empty.

Jump to

Keyboard shortcuts

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