Go言語初心者です。
現在Chatアプリを作成中で,以下のtreeとなってます
tree
1. 2├── auth 3│ └── auth.go 4├── htmlTemplates 5│ ├── chat.html 6│ ├── signin.html 7│ 8├── img 9│ └── google-logo.svg 10├── src 11│ ├── chatroom.go 12│ ├── client.go 13│ ├── handler.go 14│ ├── main.go 15│ └── message.go 16└── stylesheets 17 ├── chat-sheet.css 18 ├── signin-sheet.css
とりあえず形はできたのでCompileしようと思ったのですが、
エラーの嵐で困ってます...(/srcでbuildしてます)
GOPATHは、.zprofileでpath通してgo get objx(,gomniauth)してるんですが
どうやったらCompileできますか?
❯ go build main.go ../auth/auth.go:13:2: cannot find package "github.com/stretchr/gomniauth" in any of: /usr/local/Cellar/go/1.14/libexec/src/github.com/stretchr/gomniauth (from $GOROOT) /Users/hoge/Documents/go/src/github.com/stretchr/gomniauth (from $GOPATH) ../auth/auth.go:10:2: cannot find package "github.com/stretchr/gomniauth/providers/github" in any of: /usr/local/Cellar/go/1.14/libexec/src/github.com/stretchr/gomniauth/providers/github (from $GOROOT) /Users/hoge/Documents/go/src/github.com/stretchr/gomniauth/providers/github (from $GOPATH) ../auth/auth.go:11:2: cannot find package "github.com/stretchr/gomniauth/providers/google" in any of: /usr/local/Cellar/go/1.14/libexec/src/github.com/stretchr/gomniauth/providers/google (from $GOROOT) /Users/hoge/Documents/go/src/github.com/stretchr/gomniauth/providers/google (from $GOPATH) ../auth/auth.go:8:2: cannot find package "github.com/stretchr/objx" in any of: /usr/local/Cellar/go/1.14/libexec/src/github.com/stretchr/objx (from $GOROOT) /Users/hoge/Documents/go/src/github.com/stretchr/objx (from $GOPATH)
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2020/03/18 07:51
2020/03/18 08:58 編集
2020/03/18 15:06 編集
2020/03/19 03:32
2020/03/19 06:22