An open API service indexing awesome lists of open source software.

https://github.com/weiwenchen2022/structof

Utilities for Go structs
https://github.com/weiwenchen2022/structof

go golang structs

Last synced: 2 months ago
JSON representation

Utilities for Go structs

Awesome Lists containing this project

README

          

# structof
Package structof contains various utilities to work with Go's structs.
It can convert a struct into a `map[string]any`, and added other utilities for structs.
It's basically a high level package based on primitives from the reflect package.
Feel free to add new functions or improve the existing code.

## Install

```bash
go get github.com/weiwenchen2022/structof
```

## Spec

GoDoc: [https://godoc.org/github.com/weiwenchen2022/structof](https://godoc.org/github.com/weiwenchen2022/structof)