In Go language, there are two types of comments that are not executed. Single comments can be used to explain the purpose of the code. Multi-line comments are used to hide the code that is not executed. If a single-line comment is put on top of a function, it becomes a function comment.
There are 4 basic rules of using comments. Be concise, be clear, be relevant, and avoid obvious comments.
Playlist of my Go language course
https://www.youtube.com/playlist?list=PLtQo0sxRN7JJCsYoijUK0glylvorq-F4p
Playlist of my JavaScript course
https://www.youtube.com/playlist?list=PLtQo0sxRN7JJQzQV_p_9RKy1eXVEmUIRl
Playlist of my HTML5 and CSS3 tutorials
https://www.youtube.com/playlist?list=PLtQo0sxRN7JIENxPo4cVWN8wbOjQZE3MX
Playlist of my algorithm walkthrough
https://www.youtube.com/playlist?list=PLtQo0sxRN7JLcH6q-PeqLz6ZtnYpDa4ul
Playlist of my Java course
https://www.youtube.com/playlist?list=PLtQo0sxRN7JLr647f8RTzS58u8Rv5jxT5
Playlist of my Java examples
https://www.youtube.com/playlist?list=PLtQo0sxRN7JKKla3_GAF05dySjyy3nINa
#golang #golangtutorial #golanguage #begincodingfast