Structs contains various utilities to work with Go (Golang) structs. It was initially used by me to convert a struct into a map[string]interface{}. With time I've 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. Just like the standard lib strings, bytes and co packages, structs has many global functions to manipulate or organize your struct data. Lets define and declare a struct. The structs functions can be also used as independent methods by creating a new *structs.Struct. This is handy if you want to have more control over the structs (such as retrieving a single Field). Structs containPackage structs contains various utilities functions to work with structs various utilities to work with Go (Golang) structs. It was initially used by me to convert a struct into a map[string]interface{}. With time I've added other utilities for structs.

Features

  • Package structs contains various utilities functions to work with structs
  • Nested structs are supported
  • We can also get a slice of Fields from the Struct type to iterate over all fields
  • We can easily examine a single Field for more detail
  • The structs functions can be also used as independent methods
  • structs has many global functions to manipulate or organize your struct data

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Structs

Structs Web Site

Other Useful Business Software
Field Sales+ for MS Dynamics 365 and Salesforce Icon
Field Sales+ for MS Dynamics 365 and Salesforce

Maximize your sales performance on the go.

Bring Dynamics 365 and Salesforce wherever you go with Resco’s solution. With powerful offline features and reliable data syncing, your team can access CRM data on mobile devices anytime, anywhere. This saves time, cuts errors, and speeds up customer visits.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Structs!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Libraries

Registered

2023-01-12