projector

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2021 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 Generator

type Generator interface {
	Generate(service *Service) error
}

Generator is a generator

type GeneratorTemplated

type GeneratorTemplated struct {
	Template   *template.Template
	TargetFile string
	Payload    interface{}
}

GeneratorTemplated is a tempated generator

func (*GeneratorTemplated) Generate

func (generator *GeneratorTemplated) Generate(service *Service) error

Generate the target file

type Service

type Service struct {
	Generators  []Generator
	DistedFiles []string
	Go          *language.Go
	Npm         *language.Npm
	PHP         *language.PHP
}

Service is a projector

func NewService

func NewService() (*Service, error)

NewService creates a new Projector instance

func (*Service) Generate

func (service *Service) Generate() error

Generate your thing

Jump to

Keyboard shortcuts

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