MCPcopy Create free account
hub / github.com/gokcehan/lf / parseFile

Method parseFile

icons.go:69–88  ·  view source on GitHub ↗
(path string)

Source from the content-addressed store, hash-verified

67}
68
69func (im *iconMap) parseFile(path string) {
70 log.Printf("reading file: %s", path)
71
72 f, err := os.Open(path)
73 if err != nil {
74 log.Printf("opening icons file: %s", err)
75 return
76 }
77 defer f.Close()
78
79 arrs, err := readArrays(f, 1, 3)
80 if err != nil {
81 log.Printf("reading icons file: %s", err)
82 return
83 }
84
85 for _, arr := range arrs {
86 im.parseArray(arr)
87 }
88}
89
90func (im *iconMap) parseEnv(env string) {
91 for entry := range strings.SplitSeq(env, ":") {

Callers 1

parseIconsFunction · 0.95

Calls 2

parseArrayMethod · 0.95
readArraysFunction · 0.85

Tested by

no test coverage detected