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
Get Avast Free Antivirus with 24/7 AI-powered online scam detection Icon
Get Avast Free Antivirus with 24/7 AI-powered online scam detection

Get protection for today’s online threats. Free.

Award-winning antivirus protection, as well as protection against online scams, dangerous Wi-Fi connections, hacked accounts, and ransomware. It includes Avast Assistant, your built-in AI partner, which gives you help with suspicious online messages, offers, and more.
Free Download
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