generator

package
v0.4.0-beta Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 4 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddTask added in v0.1.0

func AddTask(task Task) error

func GetTagForTask

func GetTagForTask(name TaskName, params ...any) reflect.StructTag

func ValidateParamCount

func ValidateParamCount(task Task, taskProperties TaskProperties)

Types

type GenerationFunction

type GenerationFunction interface {
	Generate() any
	Kind() reflect.Kind
}

type Task

type Task interface {
	GenerationFunction(taskProperties TaskProperties) GenerationFunction
	ExpectedParameterCount() int
	Name() string
}

func GetTask added in v0.1.0

func GetTask(task string) Task

type TaskName

type TaskName string

type TaskProperties added in v0.1.0

type TaskProperties struct {
	TaskName   string
	Parameters []string
	FieldName  string
}

func CreateTaskProperties

func CreateTaskProperties(fieldName string, tags reflect.StructTag) (*TaskProperties, error)

Directories

Path Synopsis
Package config provides the configuration for the generation of dynamic structs.
Package config provides the configuration for the generation of dynamic structs.

Jump to

Keyboard shortcuts

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