appenders

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2023 License: MIT Imports: 2 Imported by: 0

Documentation

Overview

Package appenders contains stock Appender types for writing your own Generator.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Appender

type Appender interface {
	Append(out []byte) []byte
}

type BigFloatText

type BigFloatText struct {
	Pointer *big.Float

	Format           byte
	Prec             int
	HasFormatAndPrec bool
}

func (BigFloatText) Append

func (a BigFloatText) Append(out []byte) []byte

type BigIntText

type BigIntText struct {
	Pointer *big.Int
}

func (BigIntText) Append

func (a BigIntText) Append(out []byte) []byte

type Builder

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

func (*Builder) Add

func (b *Builder) Add(a Appender)

func (*Builder) AddByte

func (b *Builder) AddByte(ch byte)

func (*Builder) AddBytes

func (b *Builder) AddBytes(buf []byte)

func (*Builder) AddRune

func (b *Builder) AddRune(ch rune)

func (*Builder) AddString

func (b *Builder) AddString(str string)

func (*Builder) Build

func (b *Builder) Build() []Appender

func (*Builder) Indent

func (b *Builder) Indent(tab bool, size uint, count uint)

type FloatText

type FloatText float64

func (FloatText) Append

func (a FloatText) Append(out []byte) []byte

type IntText

type IntText int64

func (IntText) Append

func (a IntText) Append(out []byte) []byte

type LiteralBytes

type LiteralBytes []byte

func (LiteralBytes) Append

func (a LiteralBytes) Append(out []byte) []byte

type LiteralString

type LiteralString string

func (LiteralString) Append

func (a LiteralString) Append(out []byte) []byte

type UintText

type UintText uint64

func (UintText) Append

func (a UintText) Append(out []byte) []byte

Jump to

Keyboard shortcuts

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