formatter

package
v0.0.0-...-54d343b Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: MIT Imports: 5 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 MichelineToMichelson

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

MichelineToMichelson -

Types

type DiffResult

type DiffResult struct {
	Left      [][]Item `json:"left"`
	Right     [][]Item `json:"right"`
	NameLeft  string   `json:"name_left,omitempty"`
	NameRight string   `json:"name_right,omitempty"`
	Removed   int64    `json:"removed"`
	Added     int64    `json:"added"`
}

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"`
}

Item -

Jump to

Keyboard shortcuts

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