Luca Sepe

Installing and Upgrading Go tools

Go
Eventually remove the existing version If you are upgrading from an older version of Go you must first remove the existing version. Read more...

Go's Package Management and Module Systems

Go Modules Coding
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...

How to convert sourcecode to PNG image

PNG Slides
Since I haven't found a direct way to convert sourcecode to PNG images yet, this is how I do it. Read more...

How to convert sourcecode to XHTML, RTF, LaTeX and SVG

SVG RTF LaTeX Slides
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...

Storing 2D arrays in linear storage (1D array)

Math Coding
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...

Using HCL in your Go application

HCL configuration design golang go
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...

Go Cheat Sheet

Go Coding
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...

What is a Goroutine?

concurrency multithreading multitasking goroutines design golang go
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...

Multitasking vs Multithreading

concurrency multithreading multitasking goroutines design golang go
Multitasking Multitasking is the concurrent execution of multiple tasks (also known as processes) over a certain period of time. Read more...

Concurrency is not parallelism

concurrency design golang go
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...
1 of 2 Next Page