gogen

package
v0.0.0-...-bd01111 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Codegen

func Codegen(config Config) error

Codegen generates the go code from the given config.

func GenerateActionTypes

func GenerateActionTypes(config Config) error

GenerateActionTypes generates the go code for the action types.

func GenerateActions

func GenerateActions(config Config) error

GenerateActions generates the go code for the ActionSchemas.

func GenerateTableTypes

func GenerateTableTypes(config Config) error

GenerateTableTypes generates the go code for the table types.

func GenerateTables

func GenerateTables(config Config) error

GenerateTables generates the go code for the TableSchemas.

Types

type Config

type Config struct {
	codegen.Config
	PackageName         string
	ContractsImportPath string
	DatamodImportPath   string
	Experimental        bool
}

func (Config) Validate

func (c Config) Validate() error

Validate checks if the configuration is valid.

Jump to

Keyboard shortcuts

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