formatter

package
v1.0.0-alpha Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileFmt

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

func NewFileFmt

func NewFileFmt(file string) *FileFmt

func (*FileFmt) Format

func (f *FileFmt) Format() error

func (*FileFmt) WithIndent

func (f *FileFmt) WithIndent(indent int) *FileFmt

type Formatter

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

func New

func New(folder string) *Formatter

func (*Formatter) Format

func (f *Formatter) Format() error

type Scope

type Scope int
const (
	ScopeGlobal Scope = iota
	ScopeDefinition
	ScopeFunction
)

Jump to

Keyboard shortcuts

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