render

package
v0.0.0-...-8c12987 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: BSD-2-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithLineNumbers

func WithLineNumbers(text string) string

WithLineNumbers puts a 1 based line number to the left and returns the text.

Types

type Writer

type Writer bytes.Buffer

A Writer is just a strings builder with a Printf.

func (*Writer) Bytes

func (b *Writer) Bytes() []byte

Bytes returns the backing slice.

func (*Writer) Print

func (b *Writer) Print(a ...interface{})

func (*Writer) Printf

func (b *Writer) Printf(format string, args ...interface{})

func (*Writer) String

func (b *Writer) String() string

String returns the builders text.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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