Unable to install Revel (unrecognized import path)

I am new to Go and I would like to use the Revel web framework. I installed: Git; Mercurial and even: Bazaar and CVS.

I checked the environment variables. I set the GOPATH environment variable to D: \ Go and added D: \ Go \ bin to PATH. But I still get these errors when I go to Revel Framework (go get github.com/revel/Revel)

**

  • package golang.org/x/net/websocket: unrecognized import path "golang.org/x/net/websocket"

  • package gopkg.in/fsnotify.v1: unrecognized import path "gopkg.in/fsnotify.v1" **

+4
source share
1 answer

GO :

.
β”œβ”€β”€ bin
β”œβ”€β”€ go (GO)
└── src
    β”œβ”€β”€ revel.project
    β”‚   β”œβ”€β”€ app
    β”‚   β”‚   β”œβ”€β”€ controllers
    β”‚   β”‚   β”œβ”€β”€ models
    β”‚   β”‚   β”œβ”€β”€ routes
    β”‚   β”‚   β”œβ”€β”€ tmp
    β”‚   β”‚   └── views
    β”‚   β”‚       β”œβ”€β”€ admin
    β”‚   β”‚       β”œβ”€β”€ App
    β”‚   β”‚       β”œβ”€β”€ errors
    β”‚   β”‚       └── users
    β”‚   β”œβ”€β”€ conf
    β”‚   β”œβ”€β”€ messages
    β”‚   β”œβ”€β”€ public
    β”‚   β”‚   β”œβ”€β”€ css
    β”‚   β”‚   β”‚   └── administrator
    β”‚   β”‚   β”œβ”€β”€ img
    β”‚   β”‚   β”œβ”€β”€ js
    β”‚   β”‚   └── uploads
    β”‚   β”‚       └── 1
    β”‚   β”œβ”€β”€ resources
    β”‚   β”œβ”€β”€ scripts
    β”‚   β”œβ”€β”€ test-results
    β”‚   └── tests
    β”œβ”€β”€ code.google.com
    β”œβ”€β”€ github.com
    β”‚   β”œβ”€β”€ revel
    β”‚   β”‚   β”œβ”€β”€ cmd
    β”‚   β”‚   β”œβ”€β”€ modules
    β”‚   β”‚   └── revel

, .

  export GOARCH=amd64
  export GOPATH=~/go
  export GOBIN=~/go/go/bin
  export GOROOT=~/go/go
  export PATH=$PATH:$GOPATH/go/bin
  export GOTOOLDIR=~/go/go/pkg/tool/linux_amd64
  export CC="gcc"
  export GOGCCFLAGS="-fPIC -m64 -pthread -fmessage-length=0"
  export CXX=g++
  export CGO_ENABLED=1

~ - (Bash Gnu Linux)

+1

Source: https://habr.com/ru/post/1584436/


All Articles