質問編集履歴
2
add error message
test
CHANGED
File without changes
|
test
CHANGED
@@ -66,15 +66,13 @@
|
|
66
66
|
|
67
67
|
import (
|
68
68
|
|
69
|
-
"database/sql"
|
70
|
-
|
71
|
-
"encoding/json"
|
72
|
-
|
73
69
|
"log"
|
74
70
|
|
75
71
|
"net/http"
|
76
72
|
|
73
|
+
|
74
|
+
|
77
|
-
"g
|
75
|
+
"github.com/x/crypto/bcrypt"
|
78
76
|
|
79
77
|
)
|
80
78
|
|
@@ -103,3 +101,27 @@
|
|
103
101
|
|
104
102
|
|
105
103
|
お力添えいただければ幸いです。
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
## 追記
|
108
|
+
|
109
|
+
プロジェクトのルートで`go run main.go`と打ち込んだ時に
|
110
|
+
|
111
|
+
```
|
112
|
+
|
113
|
+
main.go:7:2: cannot find package "github.com/x/crypto/bcrypt" in any of:
|
114
|
+
|
115
|
+
/Users/myname/Code/golang/src/projects/WebAuthWithGo/vendor/github.com/x/crypto/bcrypt (vendor tree)
|
116
|
+
|
117
|
+
/usr/local/Cellar/go/1.13.4/libexec/src/github.com/x/crypto/bcrypt (from $GOROOT)
|
118
|
+
|
119
|
+
/Users/myname/Code/golang/src/github.com/x/crypto/bcrypt (from $GOPATH)
|
120
|
+
|
121
|
+
|
122
|
+
|
123
|
+
```
|
124
|
+
|
125
|
+
|
126
|
+
|
127
|
+
と表示されます。
|
1
.bash_profileの内容をついき
test
CHANGED
File without changes
|
test
CHANGED
@@ -80,7 +80,17 @@
|
|
80
80
|
|
81
81
|
```
|
82
82
|
|
83
|
+
## .bash_profile
|
83
84
|
|
85
|
+
このように設定しています。
|
86
|
+
|
87
|
+
```
|
88
|
+
|
89
|
+
export GOPATH=$HOME/Code/golang/
|
90
|
+
|
91
|
+
export PATH=$PATH:$GOPATH/bin
|
92
|
+
|
93
|
+
```
|
84
94
|
|
85
95
|
|
86
96
|
|