golang_basics

command module
v0.0.0-...-d856cfb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 15, 2020 License: GPL-3.0 Imports: 19 Imported by: 0

README

golang_basics

This includes basic programs to understand go language fundamentals

Documentation

Overview

Every program must start with the package declaration. In Go language, packages are used to organize and reuse the code.

In Go, there are two types of program availbl one is executable and another one is the library.
 The executable programs are those programs that we can run directly from the terminal and Libraries are the package of programs
 that we can reuse them in our program. Here, the package main tells the compiler that the package must compile
 in the executable program rather than a shared library. It is the starting point of the program and also contains
the main function in it.

Package main Entry Point of the Program

Directories

Path Synopsis
Package arrays implements examples to demonstrate working of arrays.
Package arrays implements examples to demonstrate working of arrays.
As the name CONSTANTS suggests means fixed, in programming languages also it is same i.e., once the value of constant is defined it cannot be modified further.
As the name CONSTANTS suggests means fixed, in programming languages also it is same i.e., once the value of constant is defined it cannot be modified further.
Package controlflowstatements implements various control flow structures available in go lang.
Package controlflowstatements implements various control flow structures available in go lang.
Package exercise contains miscellaneous examples of topic covered in go lang.
Package exercise contains miscellaneous examples of topic covered in go lang.
Package functions implements examples of defining and calling functions.
Package functions implements examples of defining and calling functions.
Package helloworld demonstrates working of print statement
Package helloworld demonstrates working of print statement
In programming languages, identifiers are used for identification purposes.
In programming languages, identifiers are used for identification purposes.
Keywords or Reserved words are the words in a language that are used for some internal process or represent some predefined actions.
Keywords or Reserved words are the words in a language that are used for some internal process or represent some predefined actions.
Package operators demonstrate working of various operators in go lang.
Package operators demonstrate working of various operators in go lang.
Package pointers demonstrating working of pointer.
Package pointers demonstrating working of pointer.
Package runtimeexample demonstrate how environment variables can be fetched in go lang.
Package runtimeexample demonstrate how environment variables can be fetched in go lang.
Package strings demontrats working of strings
Package strings demontrats working of strings
Package takinguserinput demonstrates way to take input from user.
Package takinguserinput demonstrates way to take input from user.
Package utility contains common functions used in this module.
Package utility contains common functions used in this module.
Data types specify the type of data that a valid Go variable can hold.
Data types specify the type of data that a valid Go variable can hold.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL