質問編集履歴
2
コードに誤りがある
test
CHANGED
File without changes
|
test
CHANGED
@@ -8,9 +8,7 @@
|
|
8
8
|
|
9
9
|
tokyo, _ := time.LoadLocation("Asia/Tokyo")
|
10
10
|
|
11
|
-
time.Now().In(tokyo)
|
11
|
+
t := time.Now().In(tokyo)
|
12
|
-
|
13
|
-
t := timeUtil.GetTimeNow()
|
14
12
|
|
15
13
|
var pt *time.Time = &t
|
16
14
|
|
1
コードがおかしい
test
CHANGED
File without changes
|
test
CHANGED
@@ -5,6 +5,10 @@
|
|
5
5
|
```Go
|
6
6
|
|
7
7
|
func Test_GetNow(test *testing.T) {
|
8
|
+
|
9
|
+
tokyo, _ := time.LoadLocation("Asia/Tokyo")
|
10
|
+
|
11
|
+
time.Now().In(tokyo)
|
8
12
|
|
9
13
|
t := timeUtil.GetTimeNow()
|
10
14
|
|