1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
harveyshao 2021-08-18 19:26:45 +08:00
parent d4df0e865d
commit 99d36ed8dc

View File

@ -90,13 +90,13 @@ func main() { print(ice.Run()) }
done := false
m.Cmd(nfs.CAT, main, func(line string, index int) {
if done {
if list = append(list, line); done {
return
}
if list = append(list, line); strings.HasPrefix(line, "import (") {
if strings.HasPrefix(line, "import (") {
list = append(list, kit.Format(` _ "%s/src/%s"`, mod, ctx), "")
done = true
} else if list = append(list, line); strings.HasPrefix(line, "import") {
} else if strings.HasPrefix(line, "import") {
list = append(list, "", kit.Format(`import _ "%s/src/%s"`, mod, ctx), "")
done = true
}