Now with an online live editor with Golang support. Try out and edit the examples directly in the browser. These examples explain the basics of Golang. There will be more examples from time to time. The examples are divided into three levels of difficulty. The Beginner section contains very easy examples, starting with Hello World but also containing a few easy algorithms. The Advanced section uses more complicated features of Golang. Finally, the Expert section contains applications like telnet-clients or http-server (even with SSL). If you want even more Golang examples, you can take a look at my other go repositories at GitHub. To execute a Golang program, write go run at the cli followed by the name of the file. You also can convert the file to a binary executable program by the command go build. One great aspect of Golang is, that you can start go applications via go run name.go, but also compile it to an executable with go build name.go.

Features

  • To execute a Golang program, write go run at the cli followed by the name of the file
  • You also can convert the file to a binary executable program by the command go build
  • Print Hello World with comments (shebang version)
  • Declare array and print its items (Golang Playground)
  • Read via cli provided input data (Golang Playground)
  • Concat strings in two different ways (Golang Playground)

Project Samples

Project Activity

See All Activity >

Categories

Libraries

License

MIT License

Follow Go Examples

Go Examples Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Go Examples!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Libraries

Registered

2023-02-03