dump

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package dump ... hexdump with historical diff

Copyright (c) 20121-2021 Kazuhisa TAKEI. All rights reserved. https://github.com/kazu/fbshelper See the included LICENSE file for license details.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DumpFunc

type DumpFunc func(interface{}) string

DumpFunc ... function to hexDump

type FuncInfo

type FuncInfo struct {
	Name  string
	TInfo TypeInfo
}

FuncInfo ... function info

type Histories

type Histories struct {
	Variable interface{}
	DumpFn   DumpFunc
	// contains filtered or unexported fields
}

Histories ... colliection of Histories

func New

func New(variable interface{}, dump DumpFunc, info []FuncInfo) Histories

New ... make Histories

func (*Histories) Dump

func (histories *Histories) Dump(Fmt string, v ...interface{})

func (*Histories) DumpWithFlag

func (histories *Histories) DumpWithFlag(flag bool, Fmt string, v ...interface{})

func (*Histories) Finish

func (histories *Histories) Finish()

func (*Histories) StreamOut

func (histories *Histories) StreamOut(fn func(string))

func (*Histories) String

func (histories *Histories) String() string

func (*Histories) StringBy

func (histories *Histories) StringBy(i int) string

func (*Histories) Strings

func (histories *Histories) Strings() (result []string)

type History

type History struct {
	Name string
	Dump string
}

History ... one history for dump

type TypeInfo

type TypeInfo byte

TypeInfo ... type of DumpInfomation

const (
	// TypeVariable is caller variable
	TypeVariable TypeInfo = 1 << iota
	// TypeMethod is called method
	TypeMethod
	// TypeParam is parameter of method
	TypeParam
)

Jump to

Keyboard shortcuts

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