config

package
v0.0.0-...-a9b89ad Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetLanguageByExtension

func GetLanguageByExtension(config models.LanguagesConfig, ext string) (string, models.LanguageConfig, bool)

GetLanguageByExtension 根据文件扩展名获取语言配置

func LoadLanguagesConfig

func LoadLanguagesConfig(configPath string) (models.LanguagesConfig, error)

LoadLanguagesConfig 从指定路径加载语言配置文件

Types

type Config

type Config struct {
	Languages   models.LanguagesConfig
	Output      string
	Exclude     []string
	ProjectPath string
}

Config 表示应用程序配置

Jump to

Keyboard shortcuts

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