How To Add A {++ Comment++}.
Objective
Learn how to add a comment in the code.
Requirement
Adding comments is a very handy way of adding documentation to your code, it serves as a tool to let others know what you have written and makes navigating your code an easy task.
Go has a specific format for adding comments and recommends adding comments wherever it makes sense.
Code
Adding a comment is pretty easy
// This is a comment
The compiler ignores the comment and runs your code, however as humans for us to remmember what we have written and for others to understand writing comments would make sense.
Hello World With Comment
Hello World
Golang Playground
Next
Now that you know how to write comments, lets start with writing code with beautiful comments, but before we actually start writing more code there is one small step, we need to understand {++ Data Types++}
Click on the next section to understand basic data types in Go.