index

package
v0.0.0-...-cd3ace8 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetInt

func GetInt(t reflect.Type, tagName string) ([]int, error)

GetInt returns struct indexes of array encoding.

func GetString

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

GetString returns struct indexes of map encoding.

Types

type StringKey

type StringKey struct {
	Key   string
	Index int
}

func GetStringOrdered

func GetStringOrdered(t reflect.Type, tagName string) ([]StringKey, error)

GetStringOrdered returns struct indexes of map encoding.

Jump to

Keyboard shortcuts

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