Versions in this module Expand all Collapse all v1 v1.4.3 Sep 11, 2022 v1.4.2 Sep 11, 2022 Changes in this version + var DefaultTagName = "structs" + func AsArray(ref interface{}) []interface + func DoPkgTypesMatch(a interface{}, b interface{}) error + func DoTypesMatch(a interface{}, b interface{}) error + func FillMap(s interface{}, out map[string]interface{}) + func FindInStruct(ref interface{}, name string) interface + func FindRequestData(ref interface{}) string + func GetArea(trim string, v interface{}) string + func GetCallerPackage(skip int) string + func GetCmdName2(ref interface{}) string + func GetFingerprint(ref interface{}) string + func GetName(trim string, v interface{}) string + func GetNameOld(ref interface{}) (string, string) + func GetPackageName(ref interface{}) string + func GetPkgType(v interface{}) string + func GetRequestString(ref interface{}) string + func GetStructName(v interface{}) (string, string) + func GetStructName2(ref interface{}) string + func GetType(v interface{}) string + func HasZero(s interface{}) bool + func HeaderAsArray(i interface{}) []interface + func HelpOptions(ref interface{}) string + func IsStruct(s interface{}) bool + func IsZero(s interface{}) bool + func Map(s interface{}) map[string]interface + func Name(s interface{}) string + func Names(s interface{}) []string + func PackageName(trim string, v interface{}) string + func PrintAsJson(ref interface{}) (string, error) + func PrintHeader(i interface{}) string + func PrintValue(i interface{}) string + func Query(i interface{}) string + func ReflectAsJson(ref interface{}) string + func Values(s interface{}) []interface + func VerifyOptionsRequired(ref interface{}) error + type DataStructure struct + Json string + PointDevice string + PointId string + PointName string + PointType string + PointUnit string + type DataStructureMap map[string]DataStructure + func GetTagPointType(ref interface{}) DataStructureMap + type Field struct + func Fields(s interface{}) []*Field + func (f *Field) Field(name string) *Field + func (f *Field) FieldOk(name string) (*Field, bool) + func (f *Field) Fields() []*Field + func (f *Field) IsEmbedded() bool + func (f *Field) IsExported() bool + func (f *Field) IsZero() bool + func (f *Field) Kind() reflect.Kind + func (f *Field) Name() string + func (f *Field) Set(val interface{}) error + func (f *Field) Tag(key string) string + func (f *Field) Value() interface{} + func (f *Field) Zero() error + type Required []string + func GetOptionsRequired(ref interface{}) Required + func (r *Required) IsNotRequired(field string) bool + func (r *Required) IsRequired(field string) bool + type Struct struct + TagName string + func New(s interface{}) *Struct + func (s *Struct) Field(name string) *Field + func (s *Struct) FieldOk(name string) (*Field, bool) + func (s *Struct) Fields() []*Field + func (s *Struct) FillMap(out map[string]interface{}) + func (s *Struct) HasZero() bool + func (s *Struct) IsZero() bool + func (s *Struct) Map() map[string]interface{} + func (s *Struct) Name() string + func (s *Struct) Names() []string + func (s *Struct) Values() []interface{} + type StructKey struct + Interface interface{} + JsonName string + JsonValue string + Name string + Required string + Type reflect.Type + Value string + type StructKeys map[string]StructKey + func GetStructKeys(ref interface{}, keys ...string) StructKeys