generators

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiGenerator

type ApiGenerator struct {
	// contains filtered or unexported fields
}

ApiGenerator generates the api structure

func NewApiGenerator

func NewApiGenerator(fsys pkg.FileSystem, location string) *ApiGenerator

func (*ApiGenerator) Generate

func (g *ApiGenerator) Generate() error

Generate generates the api structure

func (*ApiGenerator) Location

func (g *ApiGenerator) Location() string

Location returns the location of the api

type CliGenerator

type CliGenerator struct {
	// contains filtered or unexported fields
}

CliGenerator generates the cli structure

func NewCliGenerator

func NewCliGenerator(fsys pkg.FileSystem, location string) *CliGenerator

NewCliGenerator creates a new cli generator

func (*CliGenerator) Generate

func (g *CliGenerator) Generate() error

Generate generates the cli structure

func (*CliGenerator) Location

func (g *CliGenerator) Location() string

Location returns the location of the cli

type ComponentGenerator

type ComponentGenerator interface {
	Location() string
	Generate() error
}

ComponentGenerator is the interface for all generators

type ModuleGenerator

type ModuleGenerator struct {
	// contains filtered or unexported fields
}

ModuleGenerator generates the module structure

func NewModuleGenerator

func NewModuleGenerator(fsys pkg.FileSystem, location string) *ModuleGenerator

NewModuleGenerator creates a new module generator

func (*ModuleGenerator) Generate

func (g *ModuleGenerator) Generate() error

Generate generates the module structure

func (*ModuleGenerator) Location

func (g *ModuleGenerator) Location() string

Location returns the location of the module

Jump to

Keyboard shortcuts

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