generator

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package generator contains code generator for genmock core. It goes through the user code and generates objects and methods over interfaces.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Generator

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

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 contains methods to analyze go file to find interfaces.
Package analyzer contains methods to analyze go file to find interfaces.
Package model contains models for transmission between the analyzer and the printer.
Package model contains models for transmission between the analyzer and the printer.
Package printer conatains code generator using analyzer's models.
Package printer conatains code generator using analyzer's models.

Jump to

Keyboard shortcuts

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