Skip to content

itsAkshayDubey/go_basics

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Golang Basics

Purpose of this repository is to demonstrate basics of golang such as:

  1. Custom Types
  2. Slices
  3. Loops
  4. Receiver Functions
  5. Function with multiple return values
  6. File Handling
  7. Unit Testing
  8. Exception Handling

Go Installation

Click here to install Go - based on your OS and arch.

Execution

On Linux

  1. git clone https://github.com/itsAkshayDubey/go_basics.git
  2. cd go_basics/scripts/linux
  3. sh build.sh
  4. cd ../..
  5. ./main

On Windows

  1. git clone https://github.com/itsAkshayDubey/go_basics.git
  2. cd go_basics/scripts/windows
  3. build.bat
  4. main.exe