itsAkshayDubey / go_basics

Golang Basics

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

Golang Basics


Languages

Language:Go 83.5%Language:Shell 11.8%Language:Batchfile 4.7%