rule

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeString = "string"
	TypeTime   = "time"
	TypeNumber = "number"
	TypeBool   = "bool"
)

Variables

This section is empty.

Functions

func IsSupportedType

func IsSupportedType(typeStr string) bool

func UseTag

func UseTag(e any, onParsedFieldTagFunc OnParsedFieldTagFunc) error

Types

type Field

type Field struct {
	FieldName  string
	ColumnName string
	Type       string
}

func DefaultUsage

func DefaultUsage(e any) ([]Field, error)

type OnParsedFieldTagFunc

type OnParsedFieldTagFunc func(fieldName string, entityFieldElemValue reflect.Value, tag *Tag) error

type Tag

type Tag struct {
	ColumnName string
	Type       string
}

Jump to

Keyboard shortcuts

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