Go online compiler is a web-based platform where we can quickly run Go code.
GO: This is the official Go online compiler.
When we visit the web link above, we’ll see some intuitive features such as:
Select: To choose the environment we want to test in.
Run: This is used for executing written code.
Format: This enables editing of the code, especially after we have executed a code.
Share: This button helps us share our code on social media platforms because each code we write on the Go Online is saved and can be referenced later.
Next to the share button is a select option comprised of premade code samples to help us get started. The text field is where we type in our codes. Just beneath the text field, is where the output to our code is displayed.
package mainimport "fmt"//display textfunc main() {fmt.Println("Hello,Reader" )}
The code above is a typical GO online compiler, however, it doesn’t allow us to access all the features listed above.
fmt
package to display our output.fmt
to display the text "Hello Reader"
.