How to use godoc command properly?

Hello, people!

I try to understand, how to run godoc -http=:6060 command properly.

I try to run it unsuccessully.

My parameters are:

D:\golangpacks>go env
set GO111MODULE=on
set GOARCH=amd64
set GOBIN=D:\temp\go
set GOCACHE=C:\Users\User\AppData\Local\go-build
set GOENV=C:\Users\User\AppData\Roaming\go\env
set GOEXE=.exe
set GOEXPERIMENT=
set GOFLAGS=
set GOHOSTARCH=amd64
set GOHOSTOS=windows
set GOINSECURE=
set GOMODCACHE=D:\golangpacks\go\pkg\mod
set GONOPROXY=
set GONOSUMDB=
set GOOS=windows
set GOPATH="D:\golangpacks\go"
set GOPRIVATE=
set GOPROXY=https://proxy.golang.org,direct
set GOROOT=C:\Program Files\Go
set GOSUMDB=sum.golang.org
set GOTMPDIR=
set GOTOOLDIR=C:\Program Files\Go\pkg\tool\windows_amd64
set GOVCS=
set GOVERSION=go1.18.3
set GCCGO=gccgo
set GOAMD64=v1
set AR=ar
set CC=gcc
set CXX=g++

And I successfullu execute the programm:

D:\golangpacks>go install golang.org/x/tools/cmd/godoc@latest
go: downloading golang.org/x/tools v0.1.12
go: downloading golang.org/x/sys v0.0.0-20220722155257-8c9f86f7a55f
go: downloading github.com/yuin/goldmark v1.4.13
go: downloading golang.org/x/net v0.0.0-20220722155237-a158d28d115b
go: downloading golang.org/x/mod v0.6.0-dev.0.20220419223038-86c51ed26bb4

But when I try to run godoc -http=:6060 - I cannot have results again.
Please, help me.

What happens when you try to run this? Do you get an error?

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.