Documentation ¶
Index ¶
- Variables
- func FormatTime(t *time.Time, Chinese bool) string
- func IsCode(input string) bool
- func ReadJSONFromFile(filename string) (*types.Report, error)
- func SetArtifactType(artifactType artifact.Type) string
- func SetResultClass(resultClass types.ResultClass) string
- func Sort(data map[string]int) [][]string
- type Markdown
- func (r *Markdown) SetCode(code string) string
- func (r *Markdown) SetH1(text string)
- func (r *Markdown) SetH2(text string)
- func (r *Markdown) SetH3(text string)
- func (r *Markdown) SetH4(text string)
- func (r *Markdown) SetLi(texts []string)
- func (r *Markdown) SetLink(text, url string)
- func (r *Markdown) SetSplice()
- func (r *Markdown) SetTable(headers []string, rows [][]string)
- func (r *Markdown) SetText(text string)
- func (r *Markdown) SetUl(texts []string)
- type MdFunc
Constants ¶
This section is empty.
Variables ¶
View Source
var ChineseSeverity = map[string]string{
"CRITICAL": "超危",
"HIGH": "高危",
"MEDIUM": "中危",
"LOW": "低危",
"UNKNOWN": "未知",
}
Functions ¶
func ReadJSONFromFile ¶
ReadJSONFromFile 从文件中读取 json 文件
func SetArtifactType ¶
func SetResultClass ¶
func SetResultClass(resultClass types.ResultClass) string
Types ¶
Click to show internal directories.
Click to hide internal directories.