formatting

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

TODO the logic into go text templates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormatFile

type FormatFile func(filePath string) error

func (FormatFile) FormatFile

func (f FormatFile) FormatFile(filePath string) error

type GenIterFormatting

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

func WithFormatting

func WithFormatting(decorated app.IterGenerator) GenIterFormatting

WithFormatting decorates app.IterGenerator with formatting logic.

func (GenIterFormatting) GenerateIter

func (f GenIterFormatting) GenerateIter(packagePath string, ctx app.GenerateIterContext) ([]string, error)

GenerateIter should generate code using path to package and context.

Jump to

Keyboard shortcuts

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