Categorygithub.com/hikitani/flex
repositorypackage
0.0.1
Repository: https://github.com/hikitani/flex.git
Documentation: pkg.go.dev

# README

(っ◔◡◔)っ ♥ Flex ♥

License Static Badge

Library for introspection of structures.

Allows you to examine the structure of objects (including private fields) at runtime.

:warning: Important

Typing SVG

This library is written for fun, and the original purpose of writing it is to better understand the go language.

:sparkles: Functions

  • StructToMap[T any] - Getting all fields (as well as nested fields) as a map.
  • ValuesOf[Target, From any] - Search for all values matching the specified Target type.
  • FieldValue[T any] - Returning a value in a structure along a specified path.

:arrow_down: Install

go get github.com/hikitani/flex