Welcome To Golang By Example

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

Category: Tech

Goto statement in Go (Golang)

Posted on November 20, 2020November 20, 2020 by admin

Overview Goto statement allows unconditional jump to a labeled statement with in the same function . Below is the format of the goto statement The label can be valid go statement other…

Import same package name or Aliasing while importing packages in Go (Golang)

Posted on November 20, 2020November 20, 2020 by admin

Overview Aliasing in importing packages means give a different name to the imported package. Syntax for it is Above statement means that whatever package is present at directory <directory_path> import that package…

Blank Identifier in import in Go (Golang)

Posted on November 20, 2020November 20, 2020 by admin

Blank identifier in importing packages means specifying a blank import for the imported package. The syntax for it is What is this blank import and why it is used. For this you…

Nested Packages in Go (Golang)

Posted on November 20, 2020November 20, 2020 by admin

Overview In GO it is possible to create nested packages.  Nested packages are those packages that lie within another package. Let’s see an example Example Create a directory named learn. Let’s create…

Package Name and Directory/Folder Name in Go (Golang)- Does they need to be the same

Posted on November 20, 2020November 20, 2020 by admin

Overview Package name and the name of the directory containing that package don’t necessarily have to be the same. Then what does the import path of a package specify? For example in…

Packages and Modules in Go (Golang) – Part 2

Posted on November 19, 2020July 10, 2021 by admin

This is the  chapter 5 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – VariablesPrevious Tutorial – Packages and Modules –…

Packages and Modules in Go (Golang) – Part 1

Posted on November 19, 2020January 15, 2021 by admin

This is the chapter 4 of the golang comprehensive tutorial series. Refer to this link for other chapters of the series – Golang Comprehensive Tutorial Series Next Tutorial – Packages and Modules…

Order of execution of a Go program

Posted on November 13, 2020April 29, 2021 by admin

Overview Below the order of execution of a go program. The program starts with the main package. All imported packages in the source files of the main package is initialized. The same…

Init function in Go (Golang)

Posted on November 13, 2020November 13, 2020 by admin

Overview init() function is a special function that is used to initialize global variables of a package. These functions are executed when the package is initialized. Each of the GO source files…

Remove a dependency from a module in Go (Golang)

Posted on November 6, 2020November 6, 2020 by admin

Overview To remove a module dependency we need to do below two things Remove reference of that dependency from the source files of the module Run go mod tidy command. Remove all…

Posts pagination

Previous 1 … 25 26 27 … 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