codegen

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PluginGoTypesJenny

func PluginGoTypesJenny(root string) codejen.OneToOne[*pfs.PluginDecl]

TODO this is duplicative of other Go type jennies. Remove it in favor of a better-abstracted version in thema itself

func PluginTSTypesJenny

func PluginTSTypesJenny(root string) codejen.OneToMany[*pfs.PluginDecl]

Types

type PackageJSON

type PackageJSON struct {
	Version string `json:"version"`
}

func OpenPackageJSON

func OpenPackageJSON(dir string) (PackageJSON, error)

Opens the package.json file in the provided directory and returns a struct that represents its contents

type PluginRegistryJenny

type PluginRegistryJenny struct {
}

func (*PluginRegistryJenny) Generate

func (jenny *PluginRegistryJenny) Generate(decls ...*pfs.PluginDecl) (*codejen.File, error)

func (*PluginRegistryJenny) JennyName

func (jenny *PluginRegistryJenny) JennyName() string

type Schema

type Schema struct {
	Name     string
	Filename string
	FilePath string
}

The following group of types, beginning with templateVars_*, all contain the set of variables expected by the corresponding named template file under tmpl/

Jump to

Keyboard shortcuts

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