From 7abb8b978c4e7e72169af4182cbe159cedcde3ec Mon Sep 17 00:00:00 2001 From: Liang Ding Date: Wed, 17 Sep 2014 16:27:45 +0800 Subject: [PATCH] =?UTF-8?q?=E9=BB=98=E8=AE=A4=E7=9A=84=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 2 +- .../admin/src/mytest/hello/main.go | 9 +++++++++ .../admin/src/mytest/time/main.go | 17 +++++++++++++++++ .../admin/src/mytest/time/pkg/time.go | 17 +++++++++++++++++ 4 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 data/user_workspaces/admin/src/mytest/hello/main.go create mode 100644 data/user_workspaces/admin/src/mytest/time/main.go create mode 100644 data/user_workspaces/admin/src/mytest/time/pkg/time.go 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() { + +}