go mod Is the package management system for Go.
a module is …
a collection of related Go packages identified by a unique uri semantically versioned Downloaded dependencies are cached locally and reused.
Read more...
Short answer use Highlight!
http://www.andre-simon.de/doku/highlight/en/highlight.php
What is Highlight? Highlight converts sourcecode to HTML, XHTML, RTF, ODT, LaTeX, TeX, SVG, BBCode, Pango markup and terminal escape sequences with coloured syntax highlighting.
Read more...
The 2D array:
could be stored in two possible ways:
Index Row-Major Order Row-Minor Order 0 a11 a11 1 a12 a21 2 a13 a12 3 a21 a22 4 a22 a13 5 a23 a23 Row-Major Order The offset in the linear representation of the element given at row and col position is:
Read more...
What is HCL Config Language Toolkit? HCL is a toolkit for creating structured configuration languages that are both human and machine friendly, for use with command-line tools, servers, etc.
Read more...
Index Basic Syntax Operators Arithmetic Comparison Logical Other Declarations Functions Functions as values and closures Variadic Functions Built-in Types Type Conversions Packages Control structures If Loops Switch Arrays, Slices, Ranges Arrays Slices Operations on Arrays and Slices Maps Structs Pointers Interfaces Embedding Errors Concurrency Goroutines Channels Channel Axioms Printing Reflection Type Switch Examples Snippets Http-Server Go in a Nutshell Imperative language Statically typed Syntax tokens similar to C (but less parentheses and no semicolons) Compiles to native code (no {J}VM) No classes, but structs with methods Interfaces No implementation inheritance.
Read more...
Check this post if you want refresh your memory about multitasking and multithreading core concepts.
Let's define a Coroutine A coroutine is a function that can suspend execution to be resumed later.
Read more...
Concurrency Parallelism Interruptability Independentability Separation of tasks to provide interleaved execution Simultaneous execution of multiple pieces of work in order to increase speed A way of structuring your programs: it has to do with how programs are written A way of making your programs go faster; it has to do with how programs are run You decide to learn Go!
Read more...