Home > Backend Development > Golang > Graphical explanation of the installation and use of Godoc

Graphical explanation of the installation and use of Godoc

藏色散人
Release: 2021-07-27 16:19:13
forward
3436 people have browsed it

The following tutorial column of golang will explain the installation and use of Godoc through pictures and texts. I hope it will be helpful to friends in need!

Graphical explanation of the installation and use of Godoc

Chapter 1 Installation Environment

  • 1.1 Operating System

    Deepin 20.2. 2

  • ##1.2 Kernel version

    5.10.36-amd64-desktop

  • 1.3 golang version

    go1.16.6 linux/amd64

Chapter 2 Godoc installation

  • 2.1 Get the godoc file

    go get -v golang.org/x/tools/cmd /godoc

    Note: Switch to the $GOPATH directory to execute.

  • 2.2 godoc path example

    Graphical explanation of the installation and use of Godoc

  • ##2.3 godoc executable file

    Graphical explanation of the installation and use of Godoc

Chapter 3 Godoc use

  • 3.1 Switch directorySwitch to the directory where the

    godoc

    executable file is locatedFor Example:cd /home/wong/goprojects/bin/

  • 3.2 Execute godoc

    ./godoc

    or ./godoc -http=:6060or ./godoc -http=localhost :6060

    Description: Execute
    ./godoc

    without parameters, the default port is 6060.

  • 3.3 Visit display

    Graphical explanation of the installation and use of Godoc

The above is the detailed content of Graphical explanation of the installation and use of Godoc. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template