flect

package
v0.0.13 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package flect is meant to work alongside go's `reflect` library, containing additional runtime reflection tools

Index

Constants

View Source
const (
	WithZeros groupConfig = iota
	WithoutZeros
)

Variables

This section is empty.

Functions

func Fields

func Fields(val reflect.Value) []reflect.StructField

func IsA

func IsA(i interface{}, kind reflect.Kind) bool

func IsSlice

func IsSlice(i interface{}) bool

func IsZeroOfType

func IsZeroOfType(x interface{}) bool

func NotA

func NotA(i interface{}, kind reflect.Kind) bool

func TagValues

func TagValues(t reflect.StructTag, name string) (value string, opts tagOpts, ok bool)

func Values

func Values(structs ...interface{}) []reflect.Value

func ValuesByTag

func ValuesByTag(tag string, config groupConfig, structs ...interface{}) map[string]interface{}

Types

This section is empty.

Jump to

Keyboard shortcuts

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