Welcome To Golang By Example

Menu
  • Home
  • Blog
  • Contact Us
  • Support this website
Menu

Category: Tech

All about Base64 encoding/decoding – Complete Guide

Posted on January 18, 2021February 23, 2022 by admin

Overview Base64 is also known as Base64 Content-Transfer-Encoding. Base64 is the encoding of binary data into ASCII text. But it uses only 64 characters and plus one padding character which are present…

Conversion between struct and JSON in Go (Golang)

Posted on January 18, 2021January 18, 2021 by admin

Overview encoding/json package provides utilities that can be used to convert to and from JSON. The same utility can be used to convert a golang struct to a JSON string and vice…

Convert an array/slice into a JSON in Go (Golang)

Posted on January 18, 2021January 18, 2021 by admin

Overview encoding/json package provides the Marshal function which can be used to convert a golang array or slice into a JSON string and vice versa. Let’s see an example Example Output

Convert a JSON to map in Go (Golang)

Posted on January 18, 2021January 18, 2021 by admin

Overview encoding/json package provides utilities that can be used to convert to and from JSON. The same utility can be used to convert a golang map to JSON string and vice versa….

Convert a map to JSON in Go (Golang)

Posted on January 17, 2021January 17, 2021 by admin

Overview encoding/json package provides utilities that can be used to convert to and from JSON. The same utility can be used to convert a golang map to JSON string and vice versa….

Conversion between map and JSON in Go (Golang)

Posted on January 17, 2021January 17, 2021 by admin

Overview encoding/json package provides utilities that can be used to convert to and from JSON. The same utility can be used to convert a golang map to JSON string and vice versa….

Why response body is closed in golang

Posted on January 17, 2021January 17, 2021 by admin

The response body should be closed after the response is fully read. This is done to prevent resource leak of connections. If the response body is not closed then the connection will…

HTTP send/receive application octet-stream request body in Go (Golang)

Posted on January 10, 2021January 10, 2021 by admin

Overview application/octet-stream content-type is used to transfer binary data in the HTTP request body. So application/octet-stream is used for sending files over HTTP request. Let’s see an example of both HTTP client and server…

HTTP client/server multipart form-data request body example in Go (Golang)

Posted on January 8, 2021March 17, 2021 by admin

Overview In HTTP context, the multipart/form-data content-type is used for submitting HTML form. In the case of multipart/form-data, as the name suggests, the body consists of different parts separated by a delimiter…

HTTP send/receive png file in request body example in Go (Golang)

Posted on January 8, 2021January 8, 2021 by admin

Overview multipart/form-data content-type can be used to send the png files in an HTTP POST call. The form-data will contain png filename- test.png in the example that we will see in this…

Posts pagination

Previous 1 … 22 23 24 … 62 Next
Follow @golangbyexample

Popular Articles

Golang Comprehensive Tutorial Series

All Design Patterns in Go (Golang)

Slice in golang

Variables in Go (Golang) – Complete Guide

OOP: Inheritance in GOLANG complete guide

Using Context Package in GO (Golang) – Complete Guide

All data types in Golang with examples

Understanding time and date in Go (Golang) – Complete Guide

©2025 Welcome To Golang By Example | Design: Newspaperly WordPress Theme