writer

package
v0.20.9 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultFileHeader = `Code generated by solo-kit. DO NOT EDIT.`
View Source
const NoFileHeader = ""

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultFileWriter

type DefaultFileWriter struct {
	Root               string
	HeaderFromFilename func(string) string // prepended to files before write
}

writes to the filesystem

func (*DefaultFileWriter) WriteFile

func (w *DefaultFileWriter) WriteFile(file codegenerator.File) error

func (*DefaultFileWriter) WriteFiles

func (w *DefaultFileWriter) WriteFiles(files codegenerator.Files) error

type FileWriter

type FileWriter interface {
	WriteFile(file codegenerator.File) error
	WriteFiles(files codegenerator.Files) error
}

Jump to

Keyboard shortcuts

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