Home  >  Article  >  Backend Development  >  Introducing the present of golang tools

Introducing the present of golang tools

藏色散人
藏色散人forward
2021-02-12 09:12:032993browse

The following column golang tutorial will introduce you to the present of golang tools. I hope it will be helpful to friends who need it!

Introducing the present of golang tools

golang tool present

Golang Present is a simple tool developed by the Golang community. Through simple The syntax can be used to create ppt (the syntax is similar to Markdown).

Introduction

Golang-related technical slides are available in a variety of formats, mainly .ppt, .pdf and .slide. The
.slide format is a present format that emerged with the birth of golang. Go core development members seem to like sharing the Go language in this format. On the Golang official website, talk slides for almost all technical conferences are provided in the form of .slide. The .slide file is viewed through a web service. There is a tool called present that can view the .slide file locally.

Installation

// 下载
go get -u golang.org/x/tools/cmd/present 
// 安装
go install golang.org/x/tools/cmd/present

Use

In the working directory, execute the present command to start a server.
For example, my working directory is $GOPATH/src/github.com/golang/talks. After starting the service, the following prompt appears:

2017/05/13 22:21:21 Open your web browser and visit http://127.0.0.1:3999

This indicates that the service is started successfully. , and then you can write the slide file. The syntax of the
present file can be viewed in go doc

Digression: For some reason, some code uses go get Unable to obtain, here are two recommended websites that may better solve this pain point.

  • Services provided by golang China
  • Services provided by go language package management

More go language related technical articles, Please visit the go language tutorial column!

The above is the detailed content of Introducing the present of golang tools. For more information, please follow other related articles on the PHP Chinese website!

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