1
0
mirror of https://shylinux.com/x/ContextOS synced 2025-04-25 16:58:06 +08:00
ContextOS/src/app.go
2022-01-04 21:21:00 +08:00

21 lines
355 B
Go

package main
import (
"os"
"path"
"time"
"shylinux.com/x/ice"
"shylinux.com/x/icebergs/base/cli"
"shylinux.com/x/icebergs/base/tcp"
"shylinux.com/x/icebergs/base/web"
"shylinux.com/x/icebergs/misc/app"
)
func main() {
os.Chdir(path.Join(os.Getenv(cli.HOME), "contexts"))
go ice.Run(web.SERVE, tcp.START)
time.Sleep(time.Second)
app.Run()
}