質問編集履歴
2
追記
title
CHANGED
File without changes
|
body
CHANGED
@@ -73,8 +73,28 @@
|
|
73
73
|
})
|
74
74
|
}
|
75
75
|
```
|
76
|
+
```html
|
77
|
+
hoge.html
|
78
|
+
|
79
|
+
<!DOCTYPE html>
|
80
|
+
<html lang="ja">
|
81
|
+
<head>
|
82
|
+
<meta charset="UTF-8" />
|
83
|
+
</head>
|
84
|
+
<body>
|
85
|
+
<ul>
|
86
|
+
<!-- {{define "index"}} -->
|
87
|
+
<br>
|
88
|
+
<h1>{{range .titles}}</h1>
|
89
|
+
<p>{{.}}</p>
|
90
|
+
{{end}}
|
91
|
+
<!-- {{end}} -->
|
92
|
+
</ul>
|
93
|
+
</body>
|
94
|
+
</html>
|
95
|
+
```
|
76
96
|
期待する結果
|
77
|
-
``msgs = [アイウエオ かきくけこ]``
|
97
|
+
``msgs = [{アイウエオ} {かきくけこ}]``
|
78
98
|
|
79
99
|
[参考にした記事](https://medium.com/@cep21/gos-append-is-not-always-thread-safe-a3034db7975)
|
80
100
|
|
1
修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -74,7 +74,7 @@
|
|
74
74
|
}
|
75
75
|
```
|
76
76
|
期待する結果
|
77
|
-
``msgs = [
|
77
|
+
``msgs = [アイウエオ かきくけこ]``
|
78
78
|
|
79
79
|
[参考にした記事](https://medium.com/@cep21/gos-append-is-not-always-thread-safe-a3034db7975)
|
80
80
|
|