Documentation ¶
Index ¶
- func Debugf(format string, args ...interface{})
- func Error(err error) interface{}
- func Errorf(format string, args ...interface{})
- func MakeRuntimeError(format string, args ...interface{}) error
- func ShowPackageHeader(out io.Writer, name string, path string, kind string)
- func Warnf(format string, args ...interface{})
- type Output
- func (o *Output) Debugf(format string, args ...interface{})
- func (o *Output) Error(err error) interface{}
- func (o *Output) WarnExtraValues(extraValues []r.Value)
- func (o *Output) Warnf(format string, args ...interface{})
- func (o *Output) WriteDeclsToStream(out io.Writer, packagePath string, imports []*ast.GenDecl, ...)
- type RuntimeError
- type Stringer
- func (st *Stringer) Copy(other *Stringer)
- func (st *Stringer) ErrorAt(pos token.Pos, format string, args ...interface{}) (r.Value, []r.Value)
- func (st *Stringer) Errorf(format string, args ...interface{}) (r.Value, []r.Value)
- func (st *Stringer) Fprintf(out io.Writer, format string, values ...interface{}) (n int, err error)
- func (st *Stringer) IncLine(src string)
- func (st *Stringer) IncLineBytes(src []byte)
- func (st *Stringer) MakeRuntimeError(format string, args ...interface{}) RuntimeError
- func (st *Stringer) Position() token.Position
- func (st *Stringer) Sprintf(format string, values ...interface{}) string
- func (st *Stringer) ToString(separator string, values ...interface{}) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MakeRuntimeError ¶
func ShowPackageHeader ¶
Types ¶
type Output ¶
func (*Output) WarnExtraValues ¶
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) IncLineBytes ¶
func (*Stringer) MakeRuntimeError ¶
func (st *Stringer) MakeRuntimeError(format string, args ...interface{}) RuntimeError
Click to show internal directories.
Click to hide internal directories.