format

package
v0.0.0-...-e54033a Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2022 License: GPL-3.0 Imports: 5 Imported by: 1

README

format

This package provides easy to use functions to format your go code.

  • format.Format(fp), format the go code in place
  • format.FormatDir(dir), format the go code under folders in place

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Format

func Format(fpath string) error

Format format go source file in place

func FormatDir

func FormatDir(dir string) error

FormatDir format go source directory in place

Types

This section is empty.

Jump to

Keyboard shortcuts

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