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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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