formatter

package
v0.15.2 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(filename string, input string, options Options) (string, error)

Format returns code that is equivalent to its input but better formatted according to the given options.

Types

type Options

type Options = formatter.Options

Options is a set of parameters that control the reformatter's behaviour.

func DefaultOptions

func DefaultOptions() Options

DefaultOptions returns the recommended formatter behaviour.

Jump to

Keyboard shortcuts

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