From the course: Learning Go
Unlock this course with a free trial
Join today to access over 24,700 courses taught by industry experts.
Experiment with the Go playground - Go Tutorial
From the course: Learning Go
Experiment with the Go playground
- [Instructor] The Go Playground is an in-browser development environment that lets you create and run Go code without having to install any software. It's available through any web browser at go.dev/play. The Go Playground starts with a simple Hello World application. There's an import statement at line five importing a package called fmt, and then at line eight, it uses a function from that package called Println and outputs a string. All you have to do is click the Run button to see the results at the bottom of the screen. As of the time of this recording, you could choose between multiple versions of Go. Currently, the Go Playground supports versions 1.23, 1.22, and the development branch. There are some other code samples available on this list. For example, I'll open the Fibonacci Closure sample, that has a couple of different functions, one of which uses the other function as an object. I'll click the Run button and see the results of this application at the bottom of the…