format

package
v0.0.0-...-0e42c13 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: BSD-3-Clause Imports: 10 Imported by: 0

Documentation

Overview

Package format 提供格式化文件功能

如果被格式化的文件不符合语法,进行格式化会发生的行为未定义

Index

Constants

This section is empty.

Variables

View Source
var ErrorAfterLex = errors.New("词法分析后有错误")

Error after Lexical analysis

View Source
var KeyNoMatchRightBrace = errors.New("关键字与右大括号数量不匹配")

Keyword does not match the number of right curly braces

Functions

func FormatFile

func FormatFile(path string, errctx *errcode.ErrCtx) error

FormatFile 读取一个文件并格式化 假设词法分析前errctx没有保存过报错

Types

This section is empty.

Jump to

Keyboard shortcuts

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