generator

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Overview

Package generator contains analyzer of the source code and new code printer.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

type Generator struct {
	Conf   *config.Config
	Log    *zerolog.Logger
	Stdout io.Writer
}

Generator main type runs analyzer and code printer.

func New

func New(conf *config.Config, stdout io.Writer) (g *Generator, err error)

New returns generator with logger ready to run.

func (*Generator) Run

func (g *Generator) Run(ctx context.Context) error

Run runs analyzer and code printer.

Directories

Path Synopsis
Package analyzer scanning source code and returns result of the scanning.
Package analyzer scanning source code and returns result of the scanning.
Package model contains models to pass data between analyzer and printer.
Package model contains models to pass data between analyzer and printer.
Package printer prints generated code into go files.
Package printer prints generated code into go files.
tmpl
Package tmpl contains templates of the printer.
Package tmpl contains templates of the printer.

Jump to

Keyboard shortcuts

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