formatter

package
v0.0.0-...-b1b3a06 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const DefLineSize = 88

DefLineSize -

View Source
const DiffLineSize = 74

DiffLineSize -

Variables

This section is empty.

Functions

func IsComplex

func IsComplex(n gjson.Result) bool

IsComplex -

func IsFramed

func IsFramed(n gjson.Result) bool

IsFramed -

func IsInline

func IsInline(n gjson.Result) bool

IsInline -

func IsScript

func IsScript(n gjson.Result) bool

IsScript -

func MichelineStringToMichelson

func MichelineStringToMichelson(str string, inline bool, lineSize int) (string, error)

MichelineStringToMichelson -

func MichelineToMichelson

func MichelineToMichelson(n gjson.Result, inline bool, lineSize int) (string, error)

MichelineToMichelson -

func MichelineToMichelsonInline

func MichelineToMichelsonInline(str string) (string, error)

MichelineToMichelsonInline -

Types

type DiffResult

type DiffResult struct {
	Left    [][]Item `json:"left"`
	Right   [][]Item `json:"right"`
	Removed int64    `json:"removed"`
	Added   int64    `json:"added"`
	Changed int64    `json:"changed"`
}

DiffResult -

func Diff

func Diff(a, b gjson.Result) (res DiffResult, err error)

Diff -

type Item

type Item struct {
	Type  int    `json:"type"`
	Chunk string `json:"chunk"`
	ID    int    `json:"-"`
}

Item -

func (Item) Compare

func (i Item) Compare(other Item) bool

Compare -

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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