structs

package
v0.0.0-...-0a9b489 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package structs GENERATED BY gengo:runtimedoc DON'T EDIT THIS FILE

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllFieldValue

func AllFieldValue(ctx context.Context, v any) iter.Seq[*FieldValue]

func AllFieldValueOmitZero

func AllFieldValueOmitZero(ctx context.Context, v any, excludeFields ...string) iter.Seq[*FieldValue]

func AllStructField

func AllStructField(ctx context.Context, tpe typesx.Type) iter.Seq[*Field]

Types

type Field

type Field struct {
	Name       string
	FieldName  string
	Type       typesx.Type
	Field      typesx.StructField
	Tags       map[string]reflectx.StructTag
	Loc        []int
	ModelLoc   []int
	ColumnType columndef.ColumnDef
}

func Fields

func Fields(ctx context.Context, typ typesx.Type) []*Field

func (*Field) FieldModelValue

func (p *Field) FieldModelValue(structReflectValue reflect.Value) reflect.Value

func (*Field) FieldValue

func (p *Field) FieldValue(structReflectValue reflect.Value) reflect.Value

func (*Field) RuntimeDoc

func (v *Field) RuntimeDoc(names ...string) ([]string, bool)

type FieldValue

type FieldValue struct {
	Field     Field
	TableName string
	Value     reflect.Value
}

func (*FieldValue) RuntimeDoc

func (v *FieldValue) RuntimeDoc(names ...string) ([]string, bool)

Jump to

Keyboard shortcuts

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