mirror of https://gitee.com/openkylin/genmai.git
update docs/架构设计/开发视图设计.md.
Signed-off-by: xujian <xujian@kylinos.cn>
This commit is contained in:
parent
81de472879
commit
0e8574763e
|
@ -7,3 +7,30 @@
|
|||
2. 目录内各平行功能模块之间也遵循高内聚、低耦合模块划分原则,原则上不允许平行功能模块之间的函数调用,例如应用层的漏洞扫描模块不应调用应用层的基线扫描模块的外部函数。
|
||||
|
||||
|
||||
## 诊脉编码规范
|
||||
|
||||
1、类型、类、外部函数采用大驼峰命名法
|
||||
|
||||
```
|
||||
type
|
||||
ReportBaseLine struct {
|
||||
ReportCommon
|
||||
}
|
||||
|
||||
func
|
||||
GetTemplateReportBaseLine() (*ReportBaseLine){
|
||||
|
||||
}
|
||||
|
||||
```
|
||||
|
||||
1、变量、内部函数采用小驼峰命名法
|
||||
```
|
||||
var remoteUpdateStatus int
|
||||
var remoteStatus int
|
||||
|
||||
func (cliConf *ClientConfig) createClient(host string, port int, username, password string){
|
||||
|
||||
}
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue