sources – articles by tag

04/09/2020

GO templates

Packages text/template, html/template are part of GO standard library. GO templates are used in many GO-programmed software — docker, kubernetes, helm. Many 3rd party libraries are integrated with GO templates, for example echo. Knowing GO templates syntax is pretty useful. This article consists of text/template package documentation and couple of author's solutions. After describing GO templates syntax we'll dive into text/template и html/template sources.
Read More → templates html text sources
04/04/2020

Principles of slice type in GO

How to use slices is described in GO blog. Let's take a look to a slice internals.
Read More → slice sources allocation
04/02/2020

Principles of map type in GO

The map programming interface in GO described in GO blog. We just need to recall, that map is key-value storage and it should retrieve values by key as fast as possible.
Read More → map sources
03/31/2020

Golang regexp: matching newline

Why PHP- and JavaScript-like regular expressions work with dot (".") work differently in GO
Read More → regular expressions sources