format

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package format provides code formatting utilities.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatGo

func FormatGo(src []byte) ([]byte, error)

FormatGo formats Go source using gofmt rules. Returns nil, nil if src has syntax errors (decline to format).

func FormatMarkdown

func FormatMarkdown(src []byte) ([]byte, error)

FormatMarkdown formats markdown source using goldmark-prettier-markdown. Returns nil, nil if the source cannot be parsed (decline to format).

Types

This section is empty.

Jump to

Keyboard shortcuts

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