Category

Programming Tutorials and Coding Guides

Explore programming tutorials with practical examples across multiple languages, scripting, and development concepts for beginners and advanced users.

Welcome to the Programming tutorials section, where you will learn coding concepts with real-world examples across multiple languages and platforms.

This category includes beginner to advanced guides covering scripting, automation, and application development. Whether you are learning programming for system administration or building applications, these tutorials will help you gain practical experience.

Programming plays a crucial role in modern infrastructure and DevOps workflows. You can also explore related topics such as DevOps and Linux to understand how programming integrates with system-level operations.

What you will learn

  • Core programming concepts and logic building
  • Writing scripts for automation and system tasks
  • Debugging and optimizing code
  • Practical use cases in real environments

Who should read this

  • Beginners starting with coding
  • System administrators learning scripting
  • Developers looking for practical examples

960 articles

How to set golang HTTP client timeout? [SOLVED]

In this tutorial, we will explain some methods to set timeout for HTTP requests. A Request Timeout header is defined for Hypertext Transfer Protocol (HTTP).

By tuannguyen · 5 min read · programming

Subtract time.Duration from time in GO [SOLVED]

In Golang, we usually have to deal with time management, we do need to do some operations such as adding, and subtracting a duration from time. We will walk

By tuannguyen · 4 min read · programming

Cannot find package even if GOPATH is set [SOLVED]

Sometimes you will encounter the "Cannot find package" error (even though GOPATH is set) when building a Golang module. In this article, we will explain why

By tuannguyen · 4 min read · programming

What is & and * in Golang? [Solved]

In this tutorial we will explore what is & and * icon or operator in golang and what is it used for?

By tuannguyen · 4 min read · programming

How to check if struct is empty in GO? [SOLVED]

This article describes a few methods for determining whether a struct in Go is empty. It includes structs having fields that are comparable and

By tuannguyen · 4 min read · programming

How to convert float64 to int Golang? [SOLVED]

In this tutorial, we will walk through some ways to convert a float64 to int in Golang. As introduced before, we can convert float64 to a string using the

By tuannguyen · 3 min read · programming

How to Compare Struct, Slice or Map in GO? [SOLVED]

In Golang, the DeepEqual function is used to compare struct, slice, and map equality. It is used to determine whether or not two items are "deeply equal".

By tuannguyen · 6 min read · programming

How to do repetitive tasks at intervals GO? [SOLVED]

In today's post, I will introduce to you some ways to do some repetitive tasks at intervals in Golang. We can use the time.Ticker() function or use a channel

By tuannguyen · 4 min read · programming

How to trim leading and trailing spaces GO? [SOLVED]

In this tutorial, we are going to examine some examples of trim leading and trailing white spaces of a string in Golang. Golang provides the built-in package

By tuannguyen · 3 min read · programming