gen

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

func Generate(ctx context.Context, out io.Writer, pkg Package, fields []Field) error

Types

type Field

type Field struct {
	FieldName string
	FieldType string
	KeyName   string
	// contains filtered or unexported fields
}

func (*Field) SetPackage

func (f *Field) SetPackage(pkg string)

func (*Field) Validate

func (f *Field) Validate() error

type Package

type Package struct {
	PackageName    string
	ImportPackages []string
	Version        string
}

func (*Package) Validate

func (p *Package) Validate() error

Jump to

Keyboard shortcuts

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