generator

package
v0.0.0-...-b27b957 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: BSD-3-Clause Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Types  content.Types
	Target Target
}

type ContentGenerator

type ContentGenerator interface {
	Generate(contentType content.Type, typeDefinition *types.TypeDefinition) error
	ValidateField(field *types.Field) error
}

func New

func New(conf Config) (ContentGenerator, error)

type Path

type Path struct {
	Root string
	Base string
}

type Target

type Target struct {
	Path    Path
	Package string
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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