Skip to content

package codegen

import "kaiju/editor/codegen"

Functions

RegisterType

func RegisterType(t any)

RegisterTypeName

func RegisterTypeName(name string, t any)

Types

GeneratedType

struct

type GeneratedType struct {
    Pkg     string
    PkgPath string
    Name    string
    Fields  []reflect.StructField
    Type    reflect.Type
    // Has unexported fields.
}

Walk

func Walk(srcPath, pkgPrefix string) ([]GeneratedType, error)

GeneratedType.New

func (g *GeneratedType) New() RuntimeType

RuntimeType

struct

type RuntimeType struct {
    Generator *GeneratedType
    Value     reflect.Value
}