Tag: Web server
-
Post Views: 15 1. The Go doc tool can only obtain the comments in ../go/src in the go installation directory. In addition, it can also be used as a local document to browse the web server. Enter godoc -http=:6060 on the command line and open it with a browserhttp://localhost:6060After that, you can see the page provided by the local document…
-
Post Views: 11 1. Refer to the Go guide, web server, write file: web-servers.go 2. Accesshttp://localhost:4000/When prompted: The website cannot be accessed, as shown in Figure 1 3. Run in PowerShell: go run web-servers.go, visit againhttp://localhost:4000/When, the output: hello!, as shown in Figure 2