models

package
v0.0.0-...-affd3f3 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2025 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ListCollection

type ListCollection[T any] []T

func (*ListCollection[T]) AsMapCollection

func (l *ListCollection[T]) AsMapCollection(keyFunc func(T) string) MapCollection[string, T]

func (*ListCollection[T]) EqualTo

func (l *ListCollection[T]) EqualTo(l2 ListCollection[T], equalityFunc func(x, y T) bool) bool

func (ListCollection[T]) Sort

func (l ListCollection[T]) Sort(lessFunc func(x, y T) bool) ListCollection[T]

type MapCollection

type MapCollection[K comparable, V any] map[K]V

func (*MapCollection[K, V]) AsListCollection

func (m *MapCollection[K, V]) AsListCollection() ListCollection[V]

type Package

type Package struct {
	Path  string
	Alias string
	Name  string
}

type Struct

type Struct struct {
	Name    string
	Package Package
	Fields  ListCollection[*StructField]
}

type StructField

type StructField struct {
	Tags                map[string]string
	Name                string
	TypePackagePath     string
	TypePackage         string
	Type                string
	BasicType           bool
	FromStandardLibrary bool
	IsSlice             bool
	IsPointer           bool
}

func (*StructField) Equal

func (f *StructField) Equal(f2 *StructField) bool

Jump to

Keyboard shortcuts

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