Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterFormatter ¶
RegisterFormatter 注册文件扩展名对应的格式化器
Types ¶
type HTMLFormatter ¶
type HTMLFormatter struct {
// contains filtered or unexported fields
}
HTMLFormatter 结构体,用于格式化 HTML 代码
func NewHTMLFormatter ¶
func NewHTMLFormatter() *HTMLFormatter
NewHTMLFormatter 创建一个新的 HTMLFormatter 实例
type JSONFormatter ¶
type JSONFormatter struct{}
JSONFormatter 格式化 JSON 文件
func NewJSONFormatter ¶
func NewJSONFormatter() *JSONFormatter
Click to show internal directories.
Click to hide internal directories.