$ go install golang.org/x/tools/cmd/present@latest
$ present -notesNote: Visit the link that the present program prints out in the console (e.g. http://127.0.0.1:3999/). If you use
localhostinstead, then the code play might not work. There is another option that allows you to run code from go.dev/play instead, which is-use_playground.
Note: When entering multiline code in the editable code blocks, use
Shift+Enterfor new lines instead ofEnter. UsingEnterwill start a new<pre>block, whileShift+Enterkeeps everything within a single block as intended.