質問編集履歴
2
import箇所のコードを追記しました
test
CHANGED
File without changes
|
test
CHANGED
@@ -102,6 +102,80 @@
|
|
102
102
|
|
103
103
|
|
104
104
|
|
105
|
+
### ソースコード(package~inportまで抜粋)
|
106
|
+
|
107
|
+
- main.go
|
108
|
+
|
109
|
+
```Go
|
110
|
+
|
111
|
+
package main
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
import (
|
116
|
+
|
117
|
+
"log"
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
"pja/src"
|
122
|
+
|
123
|
+
)
|
124
|
+
|
125
|
+
```
|
126
|
+
|
127
|
+
|
128
|
+
|
129
|
+
- src.go
|
130
|
+
|
131
|
+
```Go
|
132
|
+
|
133
|
+
package src
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
import (
|
138
|
+
|
139
|
+
"log"
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
"github.com/go-sql-driver/mysql"
|
144
|
+
|
145
|
+
)
|
146
|
+
|
147
|
+
```
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
|
153
|
+
- src_test.go
|
154
|
+
|
155
|
+
```Go
|
156
|
+
|
157
|
+
package src
|
158
|
+
|
159
|
+
|
160
|
+
|
161
|
+
import (
|
162
|
+
|
163
|
+
"testing"
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
"github.com/stretchr/testify/assert"
|
168
|
+
|
169
|
+
|
170
|
+
|
171
|
+
"pja/src"
|
172
|
+
|
173
|
+
)
|
174
|
+
|
175
|
+
```
|
176
|
+
|
177
|
+
|
178
|
+
|
105
179
|
### 試したこと
|
106
180
|
|
107
181
|
|
1
パス修正
test
CHANGED
@@ -1 +1 @@
|
|
1
|
-
vscode
|
1
|
+
vscode:goのtestファイルでパスが通らない/定義へ移動しない
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
```ディレクトリ構成
|
8
8
|
|
9
|
-
/go
|
9
|
+
/{home}/go
|
10
10
|
|
11
11
|
┗ /v12
|
12
12
|
|