vfmt

package
v0.0.0-...-bbcbdef Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Unlicense Imports: 11 Imported by: 0

Documentation

Overview

Package vfmt contains logic for performing 'v fmt' on vlang files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Applier

type Applier interface {
	Apply(text.Editor, ...text.Edit)
}

type LabelCreator

type LabelCreator interface {
	CreateLabel() gxui.Label
}

LabelCreator is used to create labels to display to the user.

type OnSave

type OnSave struct {
}

func (OnSave) BeforeSave

func (o OnSave) BeforeSave(_ setting.Project, _, text string) (newText string, err error)

func (OnSave) Name

func (o OnSave) Name() string

func (OnSave) OpName

func (o OnSave) OpName() string

type Vfmt

type Vfmt struct {
	status.General
	// contains filtered or unexported fields
}

func New

func New(c LabelCreator) *Vfmt

func (*Vfmt) Defaults

func (f *Vfmt) Defaults() []fmt.Stringer

func (*Vfmt) Exec

func (f *Vfmt) Exec() error

func (*Vfmt) Menu

func (f *Vfmt) Menu() string

func (*Vfmt) Name

func (f *Vfmt) Name() string

func (*Vfmt) Reset

func (f *Vfmt) Reset()

func (*Vfmt) Store

func (f *Vfmt) Store(target interface{}) bind.Status

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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