package
Version:
v0.0.0-...-3fc9e9f
Opens a new window with list of versions in this module.
Published: Jul 2, 2017
License: MIT
Opens a new window with license information.
Imports: 14
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
input 用于处理文件输入,过滤代码,生成 doc.Doc 数据。
多行注释和单行注释在处理上会有一定区别:
- 单行注释,风格相同且相邻的注释会被合并成一个注释块;
- 单行注释,风格不相同且相邻的注释会被按注释风格多个注释块;
- 多行注释,即使两个注释释块相邻也会被分成两个注释块来处理。
DetectDirLang 检测指定目录下的语言类型。
检测依据为根据扩展名来做统计,数量最大且被支持的获胜。
不会分析子目录。
type Options struct {
SyntaxLog *log.Logger `json:"-"`
Lang string `json:"lang"`
Dir string `json:"dir"`
Exts []string `json:"exts,omitempty"`
Recursive bool `json:"recursive"`
}
Options 指定输入内容的相关信息。
Source Files
¶
Click to show internal directories.
Click to hide internal directories.