Documentation
¶
Overview ¶
Package options 输入和输出的配置项
Index ¶
Constants ¶
View Source
const ( ApidocJSON = "apidoc+json" ApidocYAML = "apidoc+yaml" OpenapiJSON = "openapi+json" OpenapiYAML = "openapi+yaml" RAMLYAML = "raml+yaml" )
文档类型定义
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Input ¶
type Input struct { Lang string `yaml:"lang"` // 输入的目标语言 Dir string `yaml:"dir"` // 源代码目录,建议使用绝对路径 Exts []string `yaml:"exts,omitempty"` // 需要扫描的文件扩展名,若未指定,则使用默认值 Recursive bool `yaml:"recursive"` // 是否查找 Dir 的子目录 Encoding string `yaml:"encoding,omitempty"` // 文件的编码,为空表示 utf-8 }
Input 指定输入内容的相关信息。
Click to show internal directories.
Click to hide internal directories.