tablewriter

package
v1.7.4 Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2025 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

View Source
const WRITER object.Type = "tablewriter.writer"

Variables

This section is empty.

Functions

func CreateWriter

func CreateWriter(ctx context.Context, args ...object.Object) object.Object

func Module

func Module() *object.Module

func Render

func Render(ctx context.Context, args ...object.Object) object.Object

Types

type Writer

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

func NewWriter

func NewWriter(v *tablewriter.Table) *Writer

func (*Writer) Cost

func (w *Writer) Cost() int

func (*Writer) Equals

func (w *Writer) Equals(other object.Object) object.Object

func (*Writer) GetAttr

func (w *Writer) GetAttr(name string) (object.Object, bool)

func (*Writer) Inspect

func (w *Writer) Inspect() string

func (*Writer) Interface

func (w *Writer) Interface() interface{}

func (*Writer) IsTruthy

func (w *Writer) IsTruthy() bool

func (*Writer) Render

func (w *Writer) Render()

func (*Writer) RunOperation

func (w *Writer) RunOperation(opType op.BinaryOpType, right object.Object) object.Object

func (*Writer) SetAttr

func (w *Writer) SetAttr(name string, value object.Object) error

func (*Writer) Type

func (w *Writer) Type() object.Type

func (*Writer) Value

func (w *Writer) Value() *tablewriter.Table

Jump to

Keyboard shortcuts

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