Category: Go
-
Post Views: 13 1. Check the Go file: exercise-maps.go, the code is as follows 2. Run the file, Go reports an error: exercise-maps.go:4:2: Cannot find package “code.google.com/p/go-tour/wc” in any of: C:\Go\src\code.google.com\p\go-tour\wc (from $goroot) C:\Users\Administrator\Go\src\code.google.com\p\go-tour\wc (from $gopath), as shown in Figure 1 3. Open the URL of Go Tour on GitHub:https://github.com/golang/tour, after turning on the blue light connection, install the go…
-
Post Views: 14 1. In the text mode of the editor, there are code snippets that start and end with go, as shown in Figure 1 2. Browse on the web page and find that it is not effective, it is still original text information, as shown in Figure 2 3. Get a list of valid tags (under “alias”) and…
-
Post Views: 14 1. For Windows users, the Go project provides two installation options (except from the source code installation): The ZIP archive requires you to set some environment variables, and the experimental MSI installer will automatically configure your installation. Open URL:https://studygolang.com/dl, download the MSI installer, as shown in Figure 1 2. Download the file: go1.13.4.windows-amd64.msi, right-click -> install, as…