fmt

package module
v0.0.0-...-b2d4a8d Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CaseModeIgnore = core.CaseModeIgnore
	CaseModeUpper  = core.CaseModeUpper
	CaseModeLower  = core.CaseModeLower
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CaseMode

type CaseMode = core.CaseMode

type Formatter

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

func New

func New(setters ...Option) *Formatter

func (*Formatter) Format

func (fmt *Formatter) Format(query string) (output string, err error)

func (*Formatter) MustFormat

func (fmt *Formatter) MustFormat(query string) string

type Option

type Option func(opts *Options)

func WithBracketSpacing

func WithBracketSpacing(val bool) Option

func WithCaseMode

func WithCaseMode(mode CaseMode) Option

func WithPrintWidth

func WithPrintWidth(size uint64) Option

func WithSingleQuote

func WithSingleQuote(val bool) Option

func WithTabWidth

func WithTabWidth(size uint64) Option

type Options

type Options = core.Options

func DefaultOptions

func DefaultOptions() *Options

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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