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

Graphical explanation of the installation and use of Godoc

藏色散人
藏色散人forward
2021-07-27 16:18:583409browse

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!

Statement:
This article is reproduced at:learnku.com. If there is any infringement, please contact admin@php.cn delete