Challenge 01 - Getting Started with Go Image Challenge 01 - Getting Started with Go

Welcome to the first TutorialEdge Go challenge! These challenges have been hand-crafted in order to expose fundamental Go concepts.

These challenges have been designed to push your understanding of the language and present you with somewhat life-like scenarios.

Challenge Info

There is a huge market right now for logging and monitoring systems that allow you to track the hardware utilization of your servers so that you can preemptively scale up and down to handle variable demand on your applications. In this challenge, you will be tasked with creating a really simple command line application that will query the current utilization of your development machine.

Goal: Build a command-line application in Go that queries system utilization.

The application, when run, should return system utilization such as CPU utilization, RAM utilization, and Backing Store Utilization in a table format

  • This code will be contained within a single main.go file

Acceptance Criteria

In order to successfully complete this challenge, your project will have to:

  • Collect the CPU utilization of your machine
  • Collect the RAM Utilization of your machine
  • Collect the Backing Storage Utilization of your machine
  • Display the results in a friendly fashion in the console when go run main.go is executed.

Key Concepts

Through completing this challenge:

  • You will learn how to create a simple Go application and subsequently compile and run this application.
  • You will gain a basic understanding of the os package and how to import packages from the standard library into your Go applications.

Completing the Challenge

In order to complete the challenge, fork the elliotforbes/go-challenges repository into your own GitHub account.

Next, create a directory within that repo for each of the challenges you attempt! This will give you a super handy repo that will contain excellent references for your own future Go projects!

Helpful Tutorials

The following tutorials should help you to complete this challenge:

Conclusion

Congratulations, you have successfully completed the first TutorialEdge Go challenge!

Elliot Forbes

Elliot Forbes
Twitter: @Elliot_f

Hey, I'm Elliot and I've been working on TutorialEdge for the last 4 years! If my work has helped you in any way, shape, or form then please consider supporting my work.

become a patron Buy Me A Coffee