dartfmt

package module
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2022 License: MIT Imports: 10 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

Formatters are candidates for FormatDart

Functions

func FormatDart

func FormatDart(script string) (string, error)

FormatDart tries to format a script with all of Formatters one-by-one

func FormatDartStandalone

func FormatDartStandalone(script string) (result string, err error)

FormatDartStandalone formats a script without dependencies on external commands

func FormatDartWithDartCLI

func FormatDartWithDartCLI(script string) (string, error)

FormatDartWithDartCLI formats a script with `dart format`

func FormatDartWithDartfmtCLI

func FormatDartWithDartfmtCLI(script string) (string, error)

FormatDartWithDartfmtCLI formats a script with `dartfmt`

Types

type Formatter

type Formatter func(script string) (string, error)

Formatter is a type of dart formatters

Jump to

Keyboard shortcuts

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