preload

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: MPL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrRelationNotLoaded = errors.New("relation not loaded")

Functions

func VerifyCollectionLoaded

func VerifyCollectionLoaded[T model.Model](collection *[]T) ([]T, error)

func VerifyPointerLoaded

func VerifyPointerLoaded[TModel model.Model, TID model.ID](id *TID, toVerify *TModel) (*TModel, error)

func VerifyPointerWithIDLoaded

func VerifyPointerWithIDLoaded[TModel model.Model, TID model.ID](id TID, toVerify *TModel) (*TModel, error)

func VerifyStructLoaded

func VerifyStructLoaded[T model.Model](toVerify *T) (*T, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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