In this article we will learn some basic about Go package directory. Here we will learn to create and use our own packages. We will also learn to install remote packages.
However, if you don’t know go’s basic convention and use of packages, please visit my previous post Go: For beginners before starting this one.
Package directory: Assuming you know what packages for, we will start with creating a new package in the go workspace.
Welcome to the world of Go, let’s start exploring!
Go is a fast-compiled, garbage-collected, concurrent systems programming language. It has the following advantages:
Compiles a large project within a few seconds. Provides a software development model avoiding most of the problems associated with C-style header files, which is easy to reason about. Is a static language that does not have levels in its type system, so users do not need to spend much time dealing with relations between types.
In this step-by-step tutorial we create a simple Breakout game written entirely in pure JavaScript and rendered on HTML5 <canvas>.
To get the most out of this series of articles you should already have basic to intermediate JavaScript knowledge. After working through this tutorial you should be able to build your own simple Web games.
Step 1: Create the Canvas and draw on it Before we can start writing the game’s functionality, we need to create a basic structure to render the game inside.