Menu
   ❮   
HTML CSS JAVASCRIPT SQL PYTHON JAVA PHP HOW TO W3.CSS C C++ C# BOOTSTRAP REACT MYSQL JQUERY EXCEL XML DJANGO NUMPY PANDAS NODEJS R TYPESCRIPT ANGULAR GIT POSTGRESQL MONGODB ASP AI GO KOTLIN SASS VUE DSA GEN AI SCIPY CYBERSECURITY DATA SCIENCE
     ❯   

Go Exercises


Introduction

The W3Schools Go Tutorial is comprehensive and beginner-friendly.

It will give you a fundamental knowledge of Go programming.

It is designed for beginners and requires no prior programming experience.

The content has been carefully made to be bite-sized, simple, and easy to understand.

The content has been proven by millions of users over the years. It is updated and improved frequently.

The syllabus outline and its sequence are structured so you can learn Go step by step, from the introduction to advanced features.

Get Started With Go »


Learning Outcomes

  • Understand Go fundamentals and basic syntax
  • Work with Go variables and data types (Boolean, Integer, Float, String)
  • Create and manipulate arrays and slices
  • Use Go operators (Arithmetic, Assignment, Comparison, Logical, Bitwise)
  • Implement control structures (if statements, switch, loops)
  • Create and work with functions (parameters, returns, recursion)
  • Understand and implement structs
  • Work with Go maps for key-value storage

Note: Are you a teacher teaching Go? W3Schools Academy is a toolbox of features that can help you teach. It offers classroom features such as pre-built study plans, classroom administration and much more. Read more about Academy here.


Which Subjects Are Go Relevant For?

  • Backend Development:
    Go is excellent for building server-side applications.
  • Cloud Computing:
    Go is widely used in cloud infrastructure.
  • System Programming:
    Go provides low-level system access.
  • Microservices:
    Go excels at building microservices.
  • DevOps:
    Go is popular for DevOps tooling.
  • Network Programming:
    Go has strong networking capabilities.
  • Concurrent Programming:
    Go makes concurrent programming simple.

Get Started


Activities

In this tutorial we offer different activities for you to learn Go for free:


Sign in to Track Progress

You can also create a free account to track your progress.

As a signed-in user, you get access to features such as:

  • Learning paths
  • Sandbox and lab environments
  • Achievements
  • And much more!

Sign Up - It's free


Overview of the Modules

Get Started


Sandbox and Lab Environment

Go, like any programming language, is best learned through hands-on practice.

Try this example using our editor:

Example

package main
import ("fmt")

func main() {
  fmt.Println("Hello World!")
}
Try it Yourself »

The Try It's Yourself feature is available for you to throughout the tutorial.


Go Certification

W3Schools offers an end-of-pathway certification program.

Here you can take exams to get certified.

The Go exam is a test that summarizes the W3Schools Go syllabus.

After passing the exam you get the "Certified Go Developer" Certification.

The certification exam is adaptive and graded; students will get a grade from intermediate, advanced to professional.

Buy Certificate »