课程: Practice It: Go REST API Server

Installing Go and third-party libraries - Go教程

课程: Practice It: Go REST API Server

Installing Go and third-party libraries

- [Instructor] Now that you've cloned the repository and have connected to Codespaces, let's install Go from the marketplace and then some third-party libraries that we will be using. So first you're going to go over to the left hand side and you'll click on this icon that says Extensions. It's also for the marketplace. And then we have, oh, Go's already installed. So that's great, but we can just make sure. And if it's not, you would do a search for Go and this is the one that you would install, okay? Then we will go down to our terminal, and from here, we will install the first of our third-party libraries, which is a router. And to install it, we will do go get -u github.com /gorilla/mux. The next one is the database that we will be using. Uses SQLite three. And again at the terminal we will do go get -u github.com /mattn /go-sqlite3. Now that we're all set, let's start creating our new REST API server.

内容