util

package
Version: v0.0.0-...-7f296a7 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

README

util

-- import "github.com/peter-mount/golib/util"

Usage

type BufferWriter
type BufferWriter struct {
	FieldWidth int
}
func (*BufferWriter) Field
func (b *BufferWriter) Field(n string, s string) *BufferWriter
func (*BufferWriter) FieldBool
func (b *BufferWriter) FieldBool(n string, s bool) *BufferWriter
func (*BufferWriter) FieldInt
func (b *BufferWriter) FieldInt(n string, s int) *BufferWriter
func (*BufferWriter) Pad
func (b *BufferWriter) Pad(s string, l int) *BufferWriter
func (*BufferWriter) PadBool
func (b *BufferWriter) PadBool(s bool, l int) *BufferWriter
func (*BufferWriter) PadInt
func (b *BufferWriter) PadInt(s int, l int) *BufferWriter
func (*BufferWriter) PadX
func (b *BufferWriter) PadX(l int) *BufferWriter
func (*BufferWriter) Row
func (b *BufferWriter) Row() *BufferWriter
func (*BufferWriter) String
func (b *BufferWriter) String() string

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BufferWriter

type BufferWriter struct {
	FieldWidth int
	// contains filtered or unexported fields
}

func (*BufferWriter) Field

func (b *BufferWriter) Field(n string, s string) *BufferWriter

func (*BufferWriter) FieldBool

func (b *BufferWriter) FieldBool(n string, s bool) *BufferWriter

func (*BufferWriter) FieldInt

func (b *BufferWriter) FieldInt(n string, s int) *BufferWriter

func (*BufferWriter) Pad

func (b *BufferWriter) Pad(s string, l int) *BufferWriter

func (*BufferWriter) PadBool

func (b *BufferWriter) PadBool(s bool, l int) *BufferWriter

func (*BufferWriter) PadInt

func (b *BufferWriter) PadInt(s int, l int) *BufferWriter

func (*BufferWriter) PadX

func (b *BufferWriter) PadX(l int) *BufferWriter

func (*BufferWriter) Row

func (b *BufferWriter) Row() *BufferWriter

func (*BufferWriter) String

func (b *BufferWriter) String() string

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL