format

package
v0.0.0-...-983604d Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2017 License: BSD-3-Clause Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CodePointToGlyph

func CodePointToGlyph(codepoint string) (string, error)

Convert an unicode codepoint into a string.

Types

type Formatter

type Formatter interface {
	Format(*sql.UnicodeData) (string, error)
}

type TextFormatter

type TextFormatter struct {
	Separator string
	// contains filtered or unexported fields
}

func NewTextFormatter

func NewTextFormatter(fields []string, separator string, glyph bool) *TextFormatter

func (TextFormatter) Fields

func (bf TextFormatter) Fields() []string

func (*TextFormatter) Format

func (t *TextFormatter) Format(s *sql.UnicodeData) (string, error)

func (*TextFormatter) SetFields

func (bf *TextFormatter) SetFields(fields []string)

func (*TextFormatter) SetShowGlyph

func (bf *TextFormatter) SetShowGlyph(value bool)

func (TextFormatter) ShowGlyph

func (bf TextFormatter) ShowGlyph() bool

Jump to

Keyboard shortcuts

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