output

package
v0.0.0-...-f54e8e0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debugf

func Debugf(format string, args ...interface{})

func Error

func Error(err error) interface{}

func Errorf

func Errorf(format string, args ...interface{})

func MakeRuntimeError

func MakeRuntimeError(format string, args ...interface{}) error

func ShowPackageHeader

func ShowPackageHeader(out io.Writer, name string, path string, kind string)

func Warnf

func Warnf(format string, args ...interface{})

Types

type Output

type Output struct {
	Stringer
	Stdout io.Writer
	Stderr io.Writer
}

func (*Output) Debugf

func (o *Output) Debugf(format string, args ...interface{})

func (*Output) Error

func (o *Output) Error(err error) interface{}

func (*Output) WarnExtraValues

func (o *Output) WarnExtraValues(extraValues []r.Value)

func (*Output) Warnf

func (o *Output) Warnf(format string, args ...interface{})

func (*Output) WriteDeclsToStream

func (o *Output) WriteDeclsToStream(out io.Writer, packagePath string,
	imports []*ast.GenDecl, declarations []ast.Decl, statements []ast.Stmt)

type RuntimeError

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

func (RuntimeError) Error

func (err RuntimeError) Error() string

type Stringer

type Stringer struct {
	Fileset    *etoken.FileSet
	Pos        token.Pos
	Line       int
	NamedTypes map[r.Type]string
}

func (*Stringer) Copy

func (st *Stringer) Copy(other *Stringer)

func (*Stringer) ErrorAt

func (st *Stringer) ErrorAt(pos token.Pos, format string, args ...interface{}) (r.Value, []r.Value)

func (*Stringer) Errorf

func (st *Stringer) Errorf(format string, args ...interface{}) (r.Value, []r.Value)

func (*Stringer) Fprintf

func (st *Stringer) Fprintf(out io.Writer, format string, values ...interface{}) (n int, err error)

func (*Stringer) IncLine

func (st *Stringer) IncLine(src string)

func (*Stringer) IncLineBytes

func (st *Stringer) IncLineBytes(src []byte)

func (*Stringer) MakeRuntimeError

func (st *Stringer) MakeRuntimeError(format string, args ...interface{}) RuntimeError

func (*Stringer) Position

func (st *Stringer) Position() token.Position

func (*Stringer) Sprintf

func (st *Stringer) Sprintf(format string, values ...interface{}) string

func (*Stringer) ToString

func (st *Stringer) ToString(separator string, values ...interface{}) string

Jump to

Keyboard shortcuts

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