Skip to content

Commit

Permalink
tour: added description for imports on/off button in welcome article
Browse files Browse the repository at this point in the history
Existing article doesnot contain the description for imports on/off button.
In new change, added description for imports on/off button in the welcome article page-1.

Fixes golang#998
  • Loading branch information
sagar23sj committed Apr 8, 2021
1 parent e4a37d3 commit c80898f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions content/welcome.article
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,11 @@ When you click on [[javascript:highlightAndClick("#format")][Format]]
[[https://golang.org/cmd/gofmt/][gofmt]] tool. You can switch syntax highlighting on and off
by clicking on the [[javascript:highlightAndClick(".syntax-checkbox")][syntax]] button.

When you click on [[javascript:highlightAndClick(".imports-checkbox")][Imports On/Off]],
it enables or disables [[https://pkg.go.dev/golang.org/x/tools/cmd/goimports][goimports]].
goimport does everything that [[https://golang.org/cmd/gofmt/][gofmt]] do. Furthermore it groups and corrects imported packages.
While correcting, goimports adds missing imports and removes unused ones.

When you're ready to move on, click the [[javascript:highlightAndClick(".next-page")][right arrow]] below or type the `PageDown` key.

.play welcome/hello.go
Expand Down

0 comments on commit c80898f

Please sign in to comment.