writer

package
v3.0.18 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoWriter

type GoWriter struct {
	TextWriter
}

func (*GoWriter) WriteCheckErr

func (w *GoWriter) WriteCheckErr(errName string, body func())

func (*GoWriter) WriteDefer

func (w *GoWriter) WriteDefer(params []string, calls []string, body func())

func (*GoWriter) WriteFuncByFuncType

func (w *GoWriter) WriteFuncByFuncType(f *option.FuncType, importer swipe.Importer)

func (*GoWriter) WriteFuncCall

func (w *GoWriter) WriteFuncCall(id, name string, params []string)

func (*GoWriter) WriteFuncCallByFuncType

func (w *GoWriter) WriteFuncCallByFuncType(f *option.FuncType, params []string, importer swipe.Importer)

func (*GoWriter) WriteStruct

func (w *GoWriter) WriteStruct(keyvals []string, assign bool)

func (*GoWriter) WriteStructAssign

func (w *GoWriter) WriteStructAssign(keyvals []string)

func (*GoWriter) WriteStructDefined

func (w *GoWriter) WriteStructDefined(keyvals []string)

func (*GoWriter) WriteType

func (w *GoWriter) WriteType(name string)

func (*GoWriter) WriteTypeStruct

func (w *GoWriter) WriteTypeStruct(name string, keyvals []string)

type TextWriter

type TextWriter struct {
	bytes.Buffer
}

func (*TextWriter) Line

func (w *TextWriter) Line()

func (*TextWriter) W

func (w *TextWriter) W(format string, args ...interface{})

Jump to

Keyboard shortcuts

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