formatter

package
v2.3.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FormatRule

type FormatRule[T any] struct {
	FormatType string   `yaml:"format_type" json:"format_type"` // 格式化类型
	InputRules []string `yaml:"input_rules" json:"input_rules"` // 识别格式化规则
	OutputRule string   `yaml:"output_rule" json:"output_rule"` //  输出格式规则
}

func (FormatRule[T]) Format

func (f FormatRule[T]) Format(src any) (T, error)

Format 格式化

Jump to

Keyboard shortcuts

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