Go

How To Use Templates in Go — step-by-step Programming tutorial on Progressive Robot

How To Use Templates in Go

Do you need to present some data in well-formatted output, textual reports, or HTML pages? You can do that with Go templates. Any Go program can use the `text/template` or `html/template` package—both included in the Go standard library—to present data neatly. This tutorial will show you how to use both template packages.

Read more
Cómo escribir comentarios en Go — step-by-step Programming tutorial on Progressive Robot

Cómo escribir comentarios en Go

Los comentarios son líneas que existen en los programas informáticos y que los compiladores e intérpretes ignoran. Incluir comentarios en programas hace que el código sea más legible para los seres humanos, ya que proporciona información o explicaciones sobre lo que cada…

Read more
How To Write Unit Tests in Go — step-by-step Programming tutorial on Progressive Robot

How To Write Unit Tests in Go

In this tutorial, you will create a small program and then run a series of tests on your code using Go’s testing package and the go test command. Once you complete the tutorial, you will have a working unit-testing suite that includes a table-based unit test, a coverage test, a benchmark, and a documented example.

Read more
Булева логика в Go — step-by-step Programming tutorial on Progressive Robot

Булева логика в Go

Логический тип данных (bool) может иметь одно из двух значений, true (истина) или false (ложь). Булевы операторы используются в программировании для сравнения и для контроля потока процессов программы. Булевы операторы используются для представления значений истины, связанных с…

Read more
Знакомство с картами в Go — step-by-step Programming tutorial on Progressive Robot

Знакомство с картами в Go

В большинстве современных языков программирования применяется концепция словаря или хэша. Эти типы обычно используются для хранения данных в парах, где ключ соответствует значению. В Go тип данных map используется как тип dictionary в большинстве других языков программирования….

Read more
Defining Methods in Go — step-by-step Programming tutorial on Progressive Robot

Defining Methods in Go

Methods are Go functions that operate on instances of a specific type. Methods allow you to communicate not only what the data is, but also how that data should be used. Methods are the core concept that makes Go interfaces possible.

Read more
Cómo convertir tipos de datos en Go — step-by-step Programming tutorial on Progressive Robot

Cómo convertir tipos de datos en Go

En Go, los tipos de datos se utilizan para clasificar un tipo de dato concreto y determinan los valores que puede asignar al tipo y las operaciones que puede realizar en él. Cuando realice tareas de programación, a veces deberá aplicar conversiones de valores entre tipos para…

Read more
CHAT