lysmeta

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 4 Imported by: 2

README

lysmeta

Functions that analyze structs.

Documentation

Overview

Package lysmeta contains functions that analyze structs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetStructTags

func GetStructTags(reflVals ...reflect.Value) (dbTags, jsonTags []string, err error)

GetStructTags reflects the supplied struct(s) and returns the combined "db" and "json" tags checks for duplicate tags

func Validate

func Validate[T any](validate *validator.Validate, input T) (err error)

Validate uses the validator lib to validate the supplied T returns all errors joined by pipe (|)

Types

This section is empty.

Jump to

Keyboard shortcuts

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