Welcome To Golang By Example

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

Tag: golang

Check if a file or directory exists in Go (Golang)

Posted on January 15, 2020October 4, 2021 by admin

os.Stat and os.IsNotExist() can be used to check whether a particular file or directory exist or not. File Exists    Folder Exists

Double, Single and Back quotes in Go (Golang)

Posted on January 6, 2020January 6, 2020 by admin

Double quotes It is used to define a string. A string defined within double quotes will honor escaping characters. For, eg for when printing a string having \n there will be a…

Character in Go (Golang)

Posted on January 6, 2020January 6, 2020 by admin

Overview Golang does not have any data type of ‘char‘. Therefore byte is used to represent the ASCII character. byte is an alias for uint8, hence is of 8 bits or 1…

Default Zero Value of all Types in Go (Golang) With Examples

Posted on January 4, 2020January 4, 2020 by admin

Default Value Table Type Default Value Integer 0 Float 0 Complex Number 0 Real and 0 Imaginary Part Byte 0 Rune 0 String “” Bool false Array Every array value to its…

Hex and Octal in Golang

Posted on January 2, 2020January 2, 2020 by admin

Overview Hex numbers are base 16 Octal numbers are base 8 Hex Numbers Hex numbers can be written using prefix 0x or 0X in GO. When Go sees any number starting with…

Know Size and Range of int or uint in Go (Golang)

Posted on January 1, 2020January 1, 2020 by admin

Overview int is a signed Integer data type uint is an unsigned Integer data type Size and range of int and uint in go is platform-dependent meaning that the size and range…

Bubble Sort in Go (Golang)

Posted on December 28, 2019December 28, 2019 by admin

Introduction In bubble sort: In each iteration i (starting with 0) , we start from first element and repeatedly swap adjacent elements if in wrong order up till length (len-i) where len…

Find the type of an object in Go (Golang)

Posted on December 1, 2019December 1, 2019 by admin

This article will describe different ways of knowing the type of an object in Go Using Reflect Package Reflect package provides some useful inspect functions that let us know the type Output:…

Function/Method Overloading in Golang (Alternatives/Workaround)

Posted on December 1, 2019December 1, 2019 by admin

Function/Method Overloading means that that the same function/method name can be used with a different number and types of parameters See this post for difference between function and method in Go –…

Difference between method and function in GO

Posted on December 1, 2019December 1, 2019 by admin

There are some important differences between method and function. Let’s see the signature of both Function: Method: From the above signature, it is clear that method has a receiver argument. A receiver…

Posts pagination

Previous 1 … 38 39 40 41 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