reflector

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Structure

type Structure struct {
	// contains filtered or unexported fields
}

func Struct

func Struct(v interface{}) *Structure

func (*Structure) AssignFromMap

func (s *Structure) AssignFromMap(v interface{}) (err error)

map[string]string values assign to struct

func (*Structure) ToMap

func (s *Structure) ToMap(tagName string) (m map[string]string)

parse struct tag and value to map

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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