MCPcopy Create free account
hub / github.com/XmirrorSecurity/OpenSCA-cli / ReadLine

Method ReadLine

opensca/model/file.go:61–65  ·  view source on GitHub ↗

ReadLine 按行读取文件内容 去除行尾换行符

(do func(line string))

Source from the content-addressed store, hash-verified

59
60// ReadLine 按行读取文件内容 去除行尾换行符
61func (file File) ReadLine(do func(line string)) {
62 file.OpenReader(func(reader io.Reader) {
63 ReadLine(reader, do)
64 })
65}
66
67// ReadLineNoComment 按行读取文件内容 忽略注释
68func (file File) ReadLineNoComment(t *CommentType, do func(line string)) {

Callers 9

mainFunction · 0.95
ParseRequirementTxtFunction · 0.80
ParseRequirementInFunction · 0.80
ParseGosumFunction · 0.80
ParseRebarLockFunction · 0.80
ParseGemfileLockFunction · 0.80
ParseSpdxFunction · 0.80
ReadDsdxFunction · 0.80
ParseYarnLockFunction · 0.80

Calls 2

OpenReaderMethod · 0.95
ReadLineFunction · 0.85

Tested by

no test coverage detected