jsbeautifier

package
v0.0.0-...-ce30f1e Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2019 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Beautify

func Beautify(data *string, options optargs.MapType) string

func BeautifyFile

func BeautifyFile(file string, options optargs.MapType) *string

func DefaultOptions

func DefaultOptions() map[string]interface{}

func New

func New(options optargs.MapType) *jsbeautifier

func NewLine

func NewLine(parent *output) *outputline

func NewOutput

func NewOutput(indent_string string, baseIndentString string) *output

Types

type Flags

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

func NewFlags

func NewFlags(mode Mode) *Flags

type Mode

type Mode int
const (
	BlockStatement Mode = iota
	Statement
	ObjectLiteral
	ArrayLiteral
	ForInitializer
	Conditional
	Expression
)

Jump to

Keyboard shortcuts

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