mirror of
https://shylinux.com/x/icebergs
synced 2025-04-26 01:24:05 +08:00
opt some
This commit is contained in:
parent
d4df0e865d
commit
99d36ed8dc
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user