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

Function main

example/file/main.go:9–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

7)
8
9func main() {
10 file := model.NewFile("./test_file.txt", "")
11 lineFunc := func(line string) { fmt.Println(line) }
12 fmt.Println("read file by line:")
13 file.ReadLine(lineFunc)
14 fmt.Println("\nread file by line, no comment c type:")
15 file.ReadLineNoComment(model.CTypeComment, lineFunc)
16 fmt.Println("\nread file by line, no comment python type:")
17 file.ReadLineNoComment(model.PythonTypeComment, lineFunc)
18}

Callers

nothing calls this directly

Calls 3

ReadLineMethod · 0.95
ReadLineNoCommentMethod · 0.95
NewFileFunction · 0.92

Tested by

no test coverage detected