Documentation ¶
Index ¶
- Variables
- func Map(data interface{}) (interface{}, error)
- func MapOrPanic(data interface{}) interface{}
- func MapOrPanicPromise(data interface{}, promise bool) interface{}
- func MapPromise(data interface{}, promise bool) (interface{}, error)
- func MarkIgnored(entity string, fn string)
- func MarkPromise(entity string, fn string)
- func SortedKeys[T any](data map[string]T) []string
- type Definition
- type Exposer
- func (e *Exposer) AddDefinition(typeDef reflect.Type) error
- func (e *Exposer) AddEntity(namespace []string, name string, typeDef reflect.Type, promise bool) error
- func (e *Exposer) Build() (string, string, error)
- func (e *Exposer) Expose(entity any, packageName string, name string) error
- func (e *Exposer) ExposeFunc(entity any) error
- func (e *Exposer) ExposeFuncOrPanic(entity any)
- func (e *Exposer) ExposeFuncOrPanicPromise(entity any)
- func (e *Exposer) ExposeFuncPromise(entity any, promise bool) error
- func (e *Exposer) ExposeOrPanic(entity any, packageName string, name string)
- type FuncMeta
- type WeakCache
Constants ¶
This section is empty.
Variables ¶
View Source
var ( JSQuoteStyle = "'" JSTrailingComma = false )
Functions ¶
func MapOrPanic ¶
func MapOrPanic(data interface{}) interface{}
func MapOrPanicPromise ¶ added in v0.0.3
func MapOrPanicPromise(data interface{}, promise bool) interface{}
func MapPromise ¶ added in v0.0.3
func MarkIgnored ¶ added in v0.0.8
func MarkPromise ¶ added in v0.0.8
func SortedKeys ¶
Types ¶
type Definition ¶
type Exposer ¶
type Exposer struct {
// contains filtered or unexported fields
}
func NewExposer ¶
func (*Exposer) ExposeFunc ¶
func (*Exposer) ExposeFuncOrPanic ¶
func (*Exposer) ExposeFuncOrPanicPromise ¶ added in v0.0.3
func (*Exposer) ExposeFuncPromise ¶ added in v0.0.3
Source Files ¶
Click to show internal directories.
Click to hide internal directories.