diff --git a/.gitignore b/.gitignore index c4bd2a6..7893291 100644 --- a/.gitignore +++ b/.gitignore @@ -7,4 +7,4 @@ /data/user_workspaces/*/bin/ /data/user_workspaces/*/pkg/ -/data/user_workspaces/*/src/ +/data/user_workspaces/*/src/**/*.exe diff --git a/data/user_workspaces/admin/src/mytest/hello/main.go b/data/user_workspaces/admin/src/mytest/hello/main.go new file mode 100644 index 0000000..21483c0 --- /dev/null +++ b/data/user_workspaces/admin/src/mytest/hello/main.go @@ -0,0 +1,9 @@ +package main + +import ( + "fmt" +) + +func main() { + fmt.Println("Hello, ÊÀ½ç")1 +} diff --git a/data/user_workspaces/admin/src/mytest/time/main.go b/data/user_workspaces/admin/src/mytest/time/main.go new file mode 100644 index 0000000..7de3d49 --- /dev/null +++ b/data/user_workspaces/admin/src/mytest/time/main.go @@ -0,0 +1,17 @@ +package main + +import ( + "fmt" + "mytest/time/pkg" + "time" +) + +func main() { + for i := 0; i < 5; i++ { + fmt.Println("Hello, 世界", pkg.Now()) + + time.Sleep(time.Second) + time. + } + +} diff --git a/data/user_workspaces/admin/src/mytest/time/pkg/time.go b/data/user_workspaces/admin/src/mytest/time/pkg/time.go new file mode 100644 index 0000000..4999349 --- /dev/null +++ b/data/user_workspaces/admin/src/mytest/time/pkg/time.go @@ -0,0 +1,17 @@ +package pkg + +import ( + "time" +) + +func Now() time.Time { + return time.Now() +} + +func Now1() time.Time { + return time.Now() +} + +func Now2() { + +}