dumpctx

package module
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 2 Imported by: 2

README

dumpctx

GoDev Build Status Coverage Status Go Report Card

Package to dump some nested/tree data.

Documentation

Index

Constants

View Source
const (
	IndentToken   string = "  "
	ListSeparator byte   = '-'

	EmptyPlaceHolderL string = "-----"
	EmptyPlaceHolderS string = "~"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ctx

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

func (*Ctx) Copy

func (ctx *Ctx) Copy(other *Ctx)

func (*Ctx) EmitPrefix

func (ctx *Ctx) EmitPrefix(w io.Writer)

func (*Ctx) Enter

func (ctx *Ctx) Enter()

func (*Ctx) EnterList

func (ctx *Ctx) EnterList()

func (*Ctx) Indent

func (ctx *Ctx) Indent() string

func (*Ctx) Init

func (ctx *Ctx) Init()

func (*Ctx) Leave

func (ctx *Ctx) Leave()

func (*Ctx) LeaveList

func (ctx *Ctx) LeaveList()

func (*Ctx) NoList added in v0.0.2

func (ctx *Ctx) NoList(cb func())

func (*Ctx) SetIsList

func (ctx *Ctx) SetIsList()

func (*Ctx) UnsetIsList

func (ctx *Ctx) UnsetIsList()

func (*Ctx) Wrap

func (ctx *Ctx) Wrap(cb func())

func (*Ctx) WrapList

func (ctx *Ctx) WrapList(cb func())

Jump to

Keyboard shortcuts

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